@@ -96,7 +96,7 @@ def test_Connection_basics_and_content_length():
9696 ),
9797 )
9898 assert data == (
99- b"GET / HTTP/1.1\r \n " b"host : example.com\r \n " b"content-length : 10\r \n \r \n "
99+ b"GET / HTTP/1.1\r \n " b"Host : example.com\r \n " b"Content-Length : 10\r \n \r \n "
100100 )
101101
102102 for conn in p .conns :
@@ -113,7 +113,7 @@ def test_Connection_basics_and_content_length():
113113 assert data == b"HTTP/1.1 100 \r \n \r \n "
114114
115115 data = p .send (SERVER , Response (status_code = 200 , headers = [("Content-Length" , "11" )]))
116- assert data == b"HTTP/1.1 200 \r \n content-length : 11\r \n \r \n "
116+ assert data == b"HTTP/1.1 200 \r \n Content-Length : 11\r \n \r \n "
117117
118118 for conn in p .conns :
119119 assert conn .states == {CLIENT : SEND_BODY , SERVER : SEND_BODY }
@@ -243,7 +243,7 @@ def test_server_talking_to_http10_client():
243243 # We automatically Connection: close back at them
244244 assert (
245245 c .send (Response (status_code = 200 , headers = []))
246- == b"HTTP/1.1 200 \r \n connection : close\r \n \r \n "
246+ == b"HTTP/1.1 200 \r \n Connection : close\r \n \r \n "
247247 )
248248
249249 assert c .send (Data (data = b"12345" )) == b"12345"
@@ -303,7 +303,7 @@ def test_automatic_transfer_encoding_in_response():
303303 receive_and_get (c , b"GET / HTTP/1.0\r \n \r \n " )
304304 assert (
305305 c .send (Response (status_code = 200 , headers = user_headers ))
306- == b"HTTP/1.1 200 \r \n connection : close\r \n \r \n "
306+ == b"HTTP/1.1 200 \r \n Connection : close\r \n \r \n "
307307 )
308308 assert c .send (Data (data = b"12345" )) == b"12345"
309309
@@ -876,7 +876,7 @@ def test_errors():
876876 if role is SERVER :
877877 assert (
878878 c .send (Response (status_code = 400 , headers = []))
879- == b"HTTP/1.1 400 \r \n connection : close\r \n \r \n "
879+ == b"HTTP/1.1 400 \r \n Connection : close\r \n \r \n "
880880 )
881881
882882 # After an error sending, you can no longer send
@@ -988,14 +988,14 @@ def setup(method, http_version):
988988 c = setup (method , b"1.1" )
989989 assert (
990990 c .send (Response (status_code = 200 , headers = [])) == b"HTTP/1.1 200 \r \n "
991- b"transfer-encoding : chunked\r \n \r \n "
991+ b"Transfer-Encoding : chunked\r \n \r \n "
992992 )
993993
994994 # No Content-Length, HTTP/1.0 peer, frame with connection: close
995995 c = setup (method , b"1.0" )
996996 assert (
997997 c .send (Response (status_code = 200 , headers = [])) == b"HTTP/1.1 200 \r \n "
998- b"connection : close\r \n \r \n "
998+ b"Connection : close\r \n \r \n "
999999 )
10001000
10011001 # Content-Length + Transfer-Encoding, TE wins
@@ -1011,7 +1011,7 @@ def setup(method, http_version):
10111011 )
10121012 )
10131013 == b"HTTP/1.1 200 \r \n "
1014- b"transfer-encoding : chunked\r \n \r \n "
1014+ b"Transfer-Encoding : chunked\r \n \r \n "
10151015 )
10161016
10171017
0 commit comments