fix POST/303 redirection loop
This commit is contained in:
parent
63f93b3b0d
commit
9cddb6ed33
1 changed files with 2 additions and 1 deletions
|
@ -370,9 +370,10 @@ httpopen(Client *c, Url *url)
|
||||||
werrstr("Partial Content (206)");
|
werrstr("Partial Content (206)");
|
||||||
goto Error;
|
goto Error;
|
||||||
|
|
||||||
|
case 303: /* See Other */
|
||||||
|
c->havepostbody = 0;
|
||||||
case 301: /* Moved Permanently */
|
case 301: /* Moved Permanently */
|
||||||
case 302: /* Moved Temporarily */
|
case 302: /* Moved Temporarily */
|
||||||
case 303: /* See Other */
|
|
||||||
case 307: /* Temporary Redirect */
|
case 307: /* Temporary Redirect */
|
||||||
redirect = 1;
|
redirect = 1;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue