Skip to content

Commit 68444aa

Browse files
committed
Sync status lines 307,308 with nginx
This fixes openresty#87
1 parent 4641530 commit 68444aa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ngx_http_srcache_util.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ static ngx_str_t ngx_http_status_lines[] = {
3939
ngx_string("302 Moved Temporarily"),
4040
ngx_string("303 See Other"),
4141
ngx_string("304 Not Modified"),
42+
ngx_null_string, /* "305 Use Proxy" */
43+
ngx_null_string, /* "306 unused" */
44+
ngx_string("307 Temporary Redirect"),
45+
ngx_string("308 Permanent Redirect"),
4246

43-
/* ngx_null_string, */ /* "305 Use Proxy" */
44-
/* ngx_null_string, */ /* "306 unused" */
45-
/* ngx_null_string, */ /* "307 Temporary Redirect" */
46-
47-
#define NGX_HTTP_LAST_LEVEL_300 305
47+
#define NGX_HTTP_LAST_LEVEL_300 309
4848
#define NGX_HTTP_LEVEL_300 (NGX_HTTP_LAST_LEVEL_300 - 301)
4949

5050
ngx_string("400 Bad Request"),

0 commit comments

Comments
 (0)