We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25dcec9 commit ebea09dCopy full SHA for ebea09d
crates/cargo-test-support/src/registry.rs
@@ -781,6 +781,7 @@ impl HttpServer {
781
let buf = buf.get_mut();
782
write!(buf, "HTTP/1.1 {}\r\n", response.code).unwrap();
783
write!(buf, "Content-Length: {}\r\n", response.body.len()).unwrap();
784
+ write!(buf, "Connection: close\r\n").unwrap();
785
for header in response.headers {
786
write!(buf, "{}\r\n", header).unwrap();
787
}
tests/testsuite/publish.rs
@@ -1965,6 +1965,7 @@ Caused by:
1965
headers:
1966
<tab>HTTP/1.1 400
1967
<tab>Content-Length: 7
1968
+ <tab>Connection: close
1969
<tab>
1970
body:
1971
go away
0 commit comments