Skip to content

Commit

Permalink
Fix URL path unquoting
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie committed Nov 6, 2018
1 parent ee71761 commit b420242
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion uvicorn/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from uvicorn.main import main, run

__version__ = "0.3.19"
__version__ = "0.3.20"
__all__ = ["main", "run"]
3 changes: 2 additions & 1 deletion uvicorn/protocols/http/httptools_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import http
import logging
import time
import urllib
from uvicorn.protocols.utils import get_local_addr, get_remote_addr, is_ssl

import httptools
Expand Down Expand Up @@ -217,7 +218,7 @@ def on_url(self, url):
parsed_url = httptools.parse_url(url)
path = parsed_url.path.decode("ascii")
if '%' in path:
path = unquote(path)
path = urllib.parse.unquote(path)
self.url = url
self.expect_100_continue = False
self.headers = []
Expand Down

0 comments on commit b420242

Please sign in to comment.