Skip to content

Commit 9cfd9a7

Browse files
authored
Update curl to 8.8.0 (#562)
1 parent c012613 commit 9cfd9a7

File tree

4 files changed

+27
-18
lines changed

4 files changed

+27
-18
lines changed

curl-sys/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "curl-sys"
3-
version = "0.4.72+curl-8.6.0"
3+
version = "0.4.73+curl-8.8.0"
44
authors = ["Alex Crichton <alex@alexcrichton.com>"]
55
links = "curl"
66
build = "build.rs"
@@ -26,7 +26,7 @@ libc = "0.2.2"
2626
libnghttp2-sys = { optional = true, version = "0.1.3" }
2727

2828
[dependencies.rustls-ffi]
29-
version = "0.8"
29+
version = "0.13"
3030
optional = true
3131
features = ["no_log_capture"]
3232

curl-sys/build.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ fn main() {
100100
.replace("@LIBCURL_LIBS@", "")
101101
.replace("@SUPPORT_FEATURES@", "")
102102
.replace("@SUPPORT_PROTOCOLS@", "")
103-
.replace("@CURLVERSION@", "8.6.0"),
103+
.replace("@CURLVERSION@", "8.8.0"),
104104
)
105105
.unwrap();
106106

@@ -147,8 +147,10 @@ fn main() {
147147
.file("curl/lib/curl_get_line.c")
148148
.file("curl/lib/curl_memrchr.c")
149149
.file("curl/lib/curl_range.c")
150+
.file("curl/lib/curl_sha512_256.c")
150151
.file("curl/lib/curl_threads.c")
151152
.file("curl/lib/curl_trc.c")
153+
.file("curl/lib/cw-out.c")
152154
.file("curl/lib/doh.c")
153155
.file("curl/lib/dynbuf.c")
154156
.file("curl/lib/dynhds.c")
@@ -191,6 +193,7 @@ fn main() {
191193
.file("curl/lib/progress.c")
192194
.file("curl/lib/rand.c")
193195
.file("curl/lib/rename.c")
196+
.file("curl/lib/request.c")
194197
.file("curl/lib/select.c")
195198
.file("curl/lib/sendf.c")
196199
.file("curl/lib/setopt.c")
@@ -234,7 +237,6 @@ fn main() {
234237
.file("curl/lib/curl_endian.c")
235238
.file("curl/lib/curl_gethostname.c")
236239
.file("curl/lib/curl_ntlm_core.c")
237-
.file("curl/lib/curl_ntlm_wb.c")
238240
.file("curl/lib/http_ntlm.c")
239241
.file("curl/lib/md4.c")
240242
.file("curl/lib/vauth/ntlm.c")

curl-sys/curl

Submodule curl updated 1561 files

tests/easy.rs

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -780,19 +780,26 @@ fn panic_in_callback() {
780780
#[test]
781781
fn abort_read() {
782782
let s = Server::new();
783-
s.receive(
784-
"\
785-
PUT / HTTP/1.1\r\n\
786-
Host: 127.0.0.1:$PORT\r\n\
787-
Accept: */*\r\n\
788-
Content-Length: 2\r\n\
789-
\r\n",
790-
);
791-
s.send(
792-
"\
793-
HTTP/1.1 200 OK\r\n\
794-
\r\n",
795-
);
783+
// 8.7.0 seems to have changed the behavior that curl will call the read
784+
// function before sending headers (I'm guessing so that it batches
785+
// everything up into a single write).
786+
if Version::get().version_num() < 0x080700 {
787+
s.receive(
788+
"\
789+
PUT / HTTP/1.1\r\n\
790+
Host: 127.0.0.1:$PORT\r\n\
791+
Accept: */*\r\n\
792+
Content-Length: 2\r\n\
793+
\r\n",
794+
);
795+
s.send(
796+
"\
797+
HTTP/1.1 200 OK\r\n\
798+
\r\n",
799+
);
800+
} else {
801+
s.receive("");
802+
}
796803

797804
let mut h = handle();
798805
t!(h.url(&s.url("/")));

0 commit comments

Comments
 (0)