浏览代码

[http] Recognise status code 303 as valid

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>
tags/v1.20.1
Jason Lunz 12 年前
父节点
当前提交
cb10137e19
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      src/net/tcp/httpcore.c

+ 1
- 0
src/net/tcp/httpcore.c 查看文件

@@ -200,6 +200,7 @@ static int http_response_to_rc ( unsigned int response ) {
200 200
 	case 206:
201 201
 	case 301:
202 202
 	case 302:
203
+	case 303:
203 204
 		return 0;
204 205
 	case 404:
205 206
 		return -ENOENT;

正在加载...
取消
保存