Skip to content

Commit afd10f0

Browse files
committed
Follow 308 redirects (as used by GitLab)
1 parent a8d447f commit afd10f0

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
@@ -395,7 +395,8 @@ static int on_headers_complete(http_parser *parser)
395395
if ((parser->status_code == 301 ||
396396
parser->status_code == 302 ||
397397
(parser->status_code == 303 && get_verb == s->verb) ||
398-
parser->status_code == 307) &&
398+
parser->status_code == 307 ||
399+
parser->status_code == 308) &&
399400
t->location) {
400401

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

0 commit comments

Comments
 (0)