Compare commits

..

1 Commits

Author SHA1 Message Date
kennethreitz 176dd70073 fix 301 redirects 2018-10-27 06:07:50 -04:00
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -1,5 +1,9 @@
# v1.0.3
- Bugfix for redirects.
# v1.0.2
- Improvement for static file hosting.
# v1.0.1
- Improve cors configuration settings.
+1 -1
View File
@@ -1 +1 @@
__version__ = "1.0.2"
__version__ = "1.0.3"
+2 -2
View File
@@ -313,7 +313,7 @@ class API:
except Exception:
self.default_response(req, resp, error=True)
raise
# Then run on_method.
method = req.method
try:
@@ -421,7 +421,7 @@ class API:
:param status_code: an `API.status_codes` attribute, or an integer, representing the HTTP status code of the redirect.
"""
assert resp.status_code.is_300(status_code)
# assert resp.status_code.is_300(status_code)
resp.status_code = status_code
if set_text: