mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
chunked encoding: example invalid requests
This commit is contained in:
parent
a3d130ae51
commit
cabc666277
7
tests/requests/invalid/chunked_12.http
Normal file
7
tests/requests/invalid/chunked_12.http
Normal file
@ -0,0 +1,7 @@
|
||||
POST /chunked_no_chunk_size_but_ext HTTP/1.1\r\n
|
||||
Transfer-Encoding: chunked\r\n
|
||||
\r\n
|
||||
;foo=bar\r\n
|
||||
hello\r\n
|
||||
0\r\n
|
||||
\r\n
|
||||
2
tests/requests/invalid/chunked_12.py
Normal file
2
tests/requests/invalid/chunked_12.py
Normal file
@ -0,0 +1,2 @@
|
||||
from gunicorn.http.errors import InvalidChunkSize
|
||||
request = InvalidChunkSize
|
||||
7
tests/requests/invalid/chunked_13.http
Normal file
7
tests/requests/invalid/chunked_13.http
Normal file
@ -0,0 +1,7 @@
|
||||
POST /chunked_no_chunk_size HTTP/1.1\r\n
|
||||
Transfer-Encoding: chunked\r\n
|
||||
\r\n
|
||||
\r\n
|
||||
hello\r\n
|
||||
0\r\n
|
||||
\r\n
|
||||
2
tests/requests/invalid/chunked_13.py
Normal file
2
tests/requests/invalid/chunked_13.py
Normal file
@ -0,0 +1,2 @@
|
||||
from gunicorn.http.errors import InvalidChunkSize
|
||||
request = InvalidChunkSize
|
||||
Loading…
x
Reference in New Issue
Block a user