Skip to content

Commit

Permalink
add ipv6 test - maybe will work?
Browse files Browse the repository at this point in the history
  • Loading branch information
sjsadowski committed Apr 15, 2021
1 parent d874ecc commit cbdbcc2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_request.py
Expand Up @@ -122,3 +122,12 @@ async def get(request):
_ = app.test_client.get("/", headers=headers)

assert isinstance(retrieved, HttpProtocol)


def test_ipv6_address_is_not_wrapped(app):
@app.get("/")
async def get(request):
return response.empty()

request, _ = app.test_client.get("/", host="::ff")
assert request.route is list(app.router.routes.values())[0]

0 comments on commit cbdbcc2

Please sign in to comment.