mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Repeated headers request test.
Test the environ produced by a request object for repeated headers.
This commit is contained in:
parent
588b48b2cd
commit
47776417d5
@ -130,4 +130,11 @@ def test_011(req):
|
||||
t.eq(e['CONTENT_LENGTH'], '11')
|
||||
body = e['wsgi.input'].read()
|
||||
t.eq(body, "hello world")
|
||||
|
||||
|
||||
@t.http_request("017.http")
|
||||
def test_017(req):
|
||||
e = req.read()
|
||||
t.eq(e['REQUEST_METHOD'], 'GET')
|
||||
t.eq(e['PATH_INFO'], "/stuff/here")
|
||||
t.eq(e["HTTP_IF_MATCH"], "bazinga!, large-sound")
|
||||
t.eq(e["wsgi.input"].read(), "")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user