From a4b67ab4372932637a16ddaa674cf690041bc0b8 Mon Sep 17 00:00:00 2001 From: Jeff Hunter Date: Wed, 8 Feb 2017 17:17:31 -0800 Subject: [PATCH] add support for HTTP 308 redirects --- tornado/simple_httpclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/simple_httpclient.py b/tornado/simple_httpclient.py index adcf38b25..bce476c14 100644 --- a/tornado/simple_httpclient.py +++ b/tornado/simple_httpclient.py @@ -499,7 +499,7 @@ class _HTTPConnection(httputil.HTTPMessageDelegate): def _should_follow_redirect(self): return (self.request.follow_redirects and self.request.max_redirects > 0 and - self.code in (301, 302, 303, 307)) + self.code in (301, 302, 303, 307, 308)) def finish(self): data = b''.join(self.chunks) -- 2.47.2