Skip to content

Commit 9b6e408

Browse files
committed
Merge commit 'afd10f0' (Follow 308 redirects)
2 parents 814e7ac + afd10f0 commit 9b6e408

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/transports/http.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ static int on_headers_complete(http_parser *parser)
398398
if ((parser->status_code == 301 ||
399399
parser->status_code == 302 ||
400400
(parser->status_code == 303 && get_verb == s->verb) ||
401-
parser->status_code == 307) &&
401+
parser->status_code == 307 ||
402+
parser->status_code == 308) &&
402403
t->location) {
403404

404405
if (s->redirect_count >= 7) {

0 commit comments

Comments
 (0)