Replace HTTP/2.0 by HTTP/2 😅
The protocol is named HTTP/2.
This commit is contained in:
committed by
Sean McArthur
parent
c38c94cb16
commit
f52d5e6290
@@ -521,7 +521,7 @@ async fn request_with_connection_headers() {
|
||||
("keep-alive", "5"),
|
||||
("proxy-connection", "bar"),
|
||||
("transfer-encoding", "chunked"),
|
||||
("upgrade", "HTTP/2.0"),
|
||||
("upgrade", "HTTP/2"),
|
||||
("te", "boom"),
|
||||
];
|
||||
|
||||
|
||||
@@ -536,7 +536,7 @@ async fn recv_connection_header() {
|
||||
client
|
||||
.send_frame(req(7, "transfer-encoding", "chunked"))
|
||||
.await;
|
||||
client.send_frame(req(9, "upgrade", "HTTP/2.0")).await;
|
||||
client.send_frame(req(9, "upgrade", "HTTP/2")).await;
|
||||
client.recv_frame(frames::reset(1).protocol_error()).await;
|
||||
client.recv_frame(frames::reset(3).protocol_error()).await;
|
||||
client.recv_frame(frames::reset(5).protocol_error()).await;
|
||||
|
||||
Reference in New Issue
Block a user