forked from pool/python-httpx
to incorrect capitalization of the 'transfer-encoding' header (gh#encode/httpx!1735). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpx?expand=0&rev=11
85 lines
2.4 KiB
Diff
85 lines
2.4 KiB
Diff
---
|
|
tests/test_main.py | 18 +++++++++---------
|
|
1 file changed, 9 insertions(+), 9 deletions(-)
|
|
|
|
--- a/tests/test_main.py
|
|
+++ b/tests/test_main.py
|
|
@@ -29,7 +29,7 @@ def test_get(server):
|
|
"HTTP/1.1 200 OK",
|
|
"server: uvicorn",
|
|
"content-type: text/plain",
|
|
- "Transfer-Encoding: chunked",
|
|
+ "transfer-encoding: chunked",
|
|
"",
|
|
"Hello, world!",
|
|
]
|
|
@@ -44,7 +44,7 @@ def test_json(server):
|
|
"HTTP/1.1 200 OK",
|
|
"server: uvicorn",
|
|
"content-type: application/json",
|
|
- "Transfer-Encoding: chunked",
|
|
+ "transfer-encoding: chunked",
|
|
"",
|
|
"{",
|
|
'"Hello": "world!"',
|
|
@@ -62,7 +62,7 @@ def test_binary(server):
|
|
"HTTP/1.1 200 OK",
|
|
"server: uvicorn",
|
|
"content-type: application/octet-stream",
|
|
- "Transfer-Encoding: chunked",
|
|
+ "transfer-encoding: chunked",
|
|
"",
|
|
f"<{len(content)} bytes of binary data>",
|
|
]
|
|
@@ -77,7 +77,7 @@ def test_redirects(server):
|
|
"HTTP/1.1 301 Moved Permanently",
|
|
"server: uvicorn",
|
|
"location: /",
|
|
- "Transfer-Encoding: chunked",
|
|
+ "transfer-encoding: chunked",
|
|
"",
|
|
]
|
|
|
|
@@ -91,12 +91,12 @@ def test_follow_redirects(server):
|
|
"HTTP/1.1 301 Moved Permanently",
|
|
"server: uvicorn",
|
|
"location: /",
|
|
- "Transfer-Encoding: chunked",
|
|
+ "transfer-encoding: chunked",
|
|
"",
|
|
"HTTP/1.1 200 OK",
|
|
"server: uvicorn",
|
|
"content-type: text/plain",
|
|
- "Transfer-Encoding: chunked",
|
|
+ "transfer-encoding: chunked",
|
|
"",
|
|
"Hello, world!",
|
|
]
|
|
@@ -111,7 +111,7 @@ def test_post(server):
|
|
"HTTP/1.1 200 OK",
|
|
"server: uvicorn",
|
|
"content-type: text/plain",
|
|
- "Transfer-Encoding: chunked",
|
|
+ "transfer-encoding: chunked",
|
|
"",
|
|
'{"hello": "world"}',
|
|
]
|
|
@@ -135,7 +135,7 @@ def test_verbose(server):
|
|
"HTTP/1.1 200 OK",
|
|
"server: uvicorn",
|
|
"content-type: text/plain",
|
|
- "Transfer-Encoding: chunked",
|
|
+ "transfer-encoding: chunked",
|
|
"",
|
|
"Hello, world!",
|
|
]
|
|
@@ -161,7 +161,7 @@ def test_auth(server):
|
|
"HTTP/1.1 200 OK",
|
|
"server: uvicorn",
|
|
"content-type: text/plain",
|
|
- "Transfer-Encoding: chunked",
|
|
+ "transfer-encoding: chunked",
|
|
"",
|
|
"Hello, world!",
|
|
]
|