Skip to content

Commit c284a7c

Browse files
committed
Add new HTTP response code to the list of those that follow redirects: 308
1 parent 93b6227 commit c284a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/rules/src/https_everywhere_checker/http_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def fetchHtml(self, url):
376376
#shitty HTTP header parsing
377377
if httpCode == 0:
378378
raise HTTPFetcherError("Pycurl fetch failed for '%s'" % newUrl)
379-
elif httpCode in (301, 302, 303, 307):
379+
elif httpCode in (301, 302, 303, 307, 308):
380380
location = None
381381
for piece in headerStr.split('\n'):
382382
if piece.lower().startswith('location:'):

0 commit comments

Comments
 (0)