From: Jeff Hunter Date: Thu, 9 Feb 2017 01:17:31 +0000 (-0800) Subject: add support for HTTP 308 redirects X-Git-Tag: v4.5.0~38^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1948%2Fhead;p=thirdparty%2Ftornado.git add support for HTTP 308 redirects --- 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)