Skip to content

Commit 6cc4005

Browse files
committed
Use clj-http-lite instead of clj-http
1 parent ff3dbba commit 6cc4005

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

deps.edn

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
;; Only for the git dependency of tools.deps
2-
{:deps {clj-http/clj-http {:mvn/version "3.13.0"}
3-
com.cognitect.aws/api {:mvn/version "0.8.692"}
2+
{:deps {com.cognitect.aws/api {:mvn/version "0.8.692"}
43
com.cognitect.aws/endpoints {:mvn/version "871.2.30.11"}
54
com.cognitect.aws/s3 {:mvn/version "871.2.30.11"}
65
com.github.mwiede/jsch {:mvn/version "0.2.24"}
76
commons-net/commons-net {:mvn/version "3.11.1"}
87
lambdaisland/uri {:mvn/version "1.19.155"}
98
org.apache.commons/commons-compress {:mvn/version "1.27.1"}
9+
org.clj-commons/clj-http-lite {:mvn/version "1.0.13"}
1010
org.clj-commons/digest {:mvn/version "1.4.100"}
1111
org.clojure/clojure {:mvn/version "1.12.0"}
1212
progrock/progrock {:mvn/version "1.0.0"}}}

project.clj

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
:url "https://github.com/totakke/cavia"
44
:license {:name "The MIT License"
55
:url "https://opensource.org/licenses/MIT"}
6-
:dependencies [[clj-http "3.13.0"]
7-
[com.cognitect.aws/api "0.8.692"]
6+
:dependencies [[com.cognitect.aws/api "0.8.692"]
87
[com.cognitect.aws/endpoints "871.2.30.11"]
98
[com.cognitect.aws/s3 "871.2.30.11"]
109
[com.github.mwiede/jsch "0.2.24"]
1110
[commons-net "3.11.1"]
1211
[lambdaisland/uri "1.19.155"]
1312
[org.apache.commons/commons-compress "1.27.1"]
13+
[org.clj-commons/clj-http-lite "1.0.13"]
1414
[org.clj-commons/digest "1.4.100"]
1515
[org.clojure/clojure "1.12.0"]
1616
[progrock "1.0.0"]]

src/cavia/downloader.clj

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[cavia.internal :refer [str->int]]
55
[cavia.sftp :as sftp]
66
[cavia.util :as util]
7-
[clj-http.client :as client]
7+
[clj-http.lite.client :as client]
88
[clojure.java.io :as io]
99
[cognitect.aws.client.api :as aws]
1010
[cognitect.aws.credentials :as credentials]
@@ -57,7 +57,7 @@
5757
:oauth2 {:oauth-token (:token auth)}
5858
nil)
5959
(when resume
60-
{:headers {:range (str "bytes=" resume "-")}}))
60+
{:headers {"range" (str "bytes=" resume "-")}}))
6161
response (client/get url option)
6262
content-len (if-let [content-len (get-in response [:headers "content-length"])]
6363
(str->int content-len) -1)

0 commit comments

Comments
 (0)