Skip to content

Commit

Permalink
Update curl to 8.8.0 (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jun 26, 2024
1 parent c012613 commit 9cfd9a7
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 18 deletions.
4 changes: 2 additions & 2 deletions curl-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "curl-sys"
version = "0.4.72+curl-8.6.0"
version = "0.4.73+curl-8.8.0"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
links = "curl"
build = "build.rs"
Expand All @@ -26,7 +26,7 @@ libc = "0.2.2"
libnghttp2-sys = { optional = true, version = "0.1.3" }

[dependencies.rustls-ffi]
version = "0.8"
version = "0.13"
optional = true
features = ["no_log_capture"]

Expand Down
6 changes: 4 additions & 2 deletions curl-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ fn main() {
.replace("@LIBCURL_LIBS@", "")
.replace("@SUPPORT_FEATURES@", "")
.replace("@SUPPORT_PROTOCOLS@", "")
.replace("@CURLVERSION@", "8.6.0"),
.replace("@CURLVERSION@", "8.8.0"),
)
.unwrap();

Expand Down Expand Up @@ -147,8 +147,10 @@ fn main() {
.file("curl/lib/curl_get_line.c")
.file("curl/lib/curl_memrchr.c")
.file("curl/lib/curl_range.c")
.file("curl/lib/curl_sha512_256.c")
.file("curl/lib/curl_threads.c")
.file("curl/lib/curl_trc.c")
.file("curl/lib/cw-out.c")
.file("curl/lib/doh.c")
.file("curl/lib/dynbuf.c")
.file("curl/lib/dynhds.c")
Expand Down Expand Up @@ -191,6 +193,7 @@ fn main() {
.file("curl/lib/progress.c")
.file("curl/lib/rand.c")
.file("curl/lib/rename.c")
.file("curl/lib/request.c")
.file("curl/lib/select.c")
.file("curl/lib/sendf.c")
.file("curl/lib/setopt.c")
Expand Down Expand Up @@ -234,7 +237,6 @@ fn main() {
.file("curl/lib/curl_endian.c")
.file("curl/lib/curl_gethostname.c")
.file("curl/lib/curl_ntlm_core.c")
.file("curl/lib/curl_ntlm_wb.c")
.file("curl/lib/http_ntlm.c")
.file("curl/lib/md4.c")
.file("curl/lib/vauth/ntlm.c")
Expand Down
2 changes: 1 addition & 1 deletion curl-sys/curl
Submodule curl updated 1561 files
33 changes: 20 additions & 13 deletions tests/easy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -780,19 +780,26 @@ fn panic_in_callback() {
#[test]
fn abort_read() {
let s = Server::new();
s.receive(
"\
PUT / HTTP/1.1\r\n\
Host: 127.0.0.1:$PORT\r\n\
Accept: */*\r\n\
Content-Length: 2\r\n\
\r\n",
);
s.send(
"\
HTTP/1.1 200 OK\r\n\
\r\n",
);
// 8.7.0 seems to have changed the behavior that curl will call the read
// function before sending headers (I'm guessing so that it batches
// everything up into a single write).
if Version::get().version_num() < 0x080700 {
s.receive(
"\
PUT / HTTP/1.1\r\n\
Host: 127.0.0.1:$PORT\r\n\
Accept: */*\r\n\
Content-Length: 2\r\n\
\r\n",
);
s.send(
"\
HTTP/1.1 200 OK\r\n\
\r\n",
);
} else {
s.receive("");
}

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

0 comments on commit 9cfd9a7

Please sign in to comment.