Skip to content

Commit

Permalink
[http] Recognise status code 303 as valid
Browse files Browse the repository at this point in the history
As RFC 2616 10.3.4 explains, a 303 status is the proper HTTP 1.1
behavior for what most HTTP 1.0 clients did with code 302.

Signed-off-by: Jason Lunz <lunz@acm.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
Jason Lunz authored and mcb30 committed Mar 1, 2012
1 parent cd29df5 commit cb10137
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/net/tcp/httpcore.c
Expand Up @@ -200,6 +200,7 @@ static int http_response_to_rc ( unsigned int response ) {
case 206:
case 301:
case 302:
case 303:
return 0;
case 404:
return -ENOENT;
Expand Down

0 comments on commit cb10137

Please sign in to comment.