Commit 9b6e4081 by Carlos Martín Nieto

Merge commit 'afd10f0b' (Follow 308 redirects)

parents 814e7acb afd10f0b
......@@ -398,7 +398,8 @@ static int on_headers_complete(http_parser *parser)
if ((parser->status_code == 301 ||
parser->status_code == 302 ||
(parser->status_code == 303 && get_verb == s->verb) ||
parser->status_code == 307) &&
parser->status_code == 307 ||
parser->status_code == 308) &&
t->location) {
if (s->redirect_count >= 7) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment