]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[http] Recognise status code 303 as valid
authorJason Lunz <lunz@acm.org>
Sat, 25 Feb 2012 04:30:48 +0000 (20:30 -0800)
committerMichael Brown <mcb30@ipxe.org>
Thu, 1 Mar 2012 16:16:53 +0000 (16:16 +0000)
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>
src/net/tcp/httpcore.c

index 3c36b8e08615656228951a2d4d66d59a44948ca8..69d27389b5cfa0416a8968839f2af300143d0b28 100644 (file)
@@ -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;