Skip to content

Commit

Permalink
Bump version and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Jun 29, 2022
1 parent d41c478 commit 1603767
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sanic/__version__.py
@@ -1 +1 @@
__version__ = "21.12.1"
__version__ = "21.12.2"
2 changes: 1 addition & 1 deletion sanic/config.py
Expand Up @@ -39,7 +39,7 @@
"REQUEST_TIMEOUT": 60, # 60 seconds
"RESPONSE_TIMEOUT": 60, # 60 seconds
"USE_UVLOOP": _default,
"WEBSOCKET_MAX_SIZE": 2 ** 20, # 1 megabyte
"WEBSOCKET_MAX_SIZE": 2**20, # 1 megabyte
"WEBSOCKET_PING_INTERVAL": 20,
"WEBSOCKET_PING_TIMEOUT": 20,
}
Expand Down
2 changes: 1 addition & 1 deletion sanic/headers.py
Expand Up @@ -18,7 +18,7 @@
OptionsIterable = Iterable[Tuple[str, str]] # May contain duplicate keys

_token, _quoted = r"([\w!#$%&'*+\-.^_`|~]+)", r'"([^"]*)"'
_param = re.compile(fr";\s*{_token}=(?:{_token}|{_quoted})", re.ASCII)
_param = re.compile(rf";\s*{_token}=(?:{_token}|{_quoted})", re.ASCII)
_firefox_quote_escape = re.compile(r'\\"(?!; |\s*$)')
_ipv6 = "(?:[0-9A-Fa-f]{0,4}:){2,7}[0-9A-Fa-f]{0,4}"
_ipv6_re = re.compile(_ipv6)
Expand Down
5 changes: 3 additions & 2 deletions tests/test_requests.py
Expand Up @@ -1935,8 +1935,9 @@ def handler(request):
assert request.scheme == "https"
# These two currently fail, because SERVER_NAME’s path is not
# taken into account.
#assert request.path == path
#assert request.url == url
# assert request.path == path
# assert request.url == url


def test_url_for_with_forwarded_request(app):
@app.get("/")
Expand Down

0 comments on commit 1603767

Please sign in to comment.