Skip to content

Commit

Permalink
Add testcase for #822
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Apr 10, 2016
1 parent a59efcf commit 064f101
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ def app(environ, start_response):
assert res.read() == b'YES'


def test_double_slash_path(dev_server):
server = dev_server('''
def app(environ, start_response):
assert 'fail' not in environ['HTTP_HOST']
start_response('200 OK', [('Content-Type', 'text/plain')])
return [b'YES']
''')

r = requests.get(server.url + '//fail')
assert r.content == b'YES'


def test_broken_app(dev_server):
server = dev_server('''
def app(environ, start_response):
Expand Down

0 comments on commit 064f101

Please # to comment.