We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7066a19 commit ca25fd1Copy full SHA for ca25fd1
1 file changed
tests/socks5.rs
@@ -99,7 +99,7 @@ async fn socks5_relay_stream() {
99
.await
100
.unwrap();
101
102
- let req = b"GET / HTTP/1.0\r\nHost: www.example.com\r\nAccept: */*\r\n\r\n";
+ let req = b"GET / HTTP/1.1\r\nHost: www.example.com\r\nAccept: */*\r\nConnection: close\r\n\r\n";
103
c.write_all(req).await.unwrap();
104
c.flush().await.unwrap();
105
@@ -108,8 +108,8 @@ async fn socks5_relay_stream() {
108
let mut buf = Vec::new();
109
r.read_until(b'\n', &mut buf).await.unwrap();
110
111
- let http_status = b"HTTP/1.0 200 OK\r\n";
112
- assert!(buf.starts_with(http_status));
+ let http_status = b"HTTP/1.1 200 OK\r\n";
+ assert!(buf.starts_with(http_status), "buf: {:?}", str::from_utf8(&buf));
113
}
114
115
#[tokio::test]
0 commit comments