Skip to content

Commit

Permalink
url can be a URL object
Browse files Browse the repository at this point in the history
  • Loading branch information
vangheem committed Sep 6, 2017
1 parent d73bbc5 commit 9b7eaa2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aioresponses/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def __init__(self, url: str, method: str = hdrs.METH_GET,

def parse_url(self, url: str) -> str:
"""Normalize url to make comparisons."""
url = str(url)
_url = url.split('?')[0]
query = urlencode(sorted(parse_qsl(urlparse(url).query)))

Expand Down

0 comments on commit 9b7eaa2

Please sign in to comment.