Skip to content

Commit 1d70d4b

Browse files
committed
updated the test suite to reflect recent changes in nginx 1.5.x.
1 parent e759799 commit 1d70d4b

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

t/bugs.t

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ F(ngx_http_finalize_request) {
318318
^finalize: -4
319319
conn err: 110: upstream timed out
320320
upstream fin req: error=0 eof=0 rc=504
321-
finalize: -1
322-
post subreq: rc=-1, status=200
321+
finalize: 0
322+
post subreq: rc=0, status=200
323323
finalize: 0$
324324
325325
--- tcp_listen: 19112
@@ -476,12 +476,12 @@ F(ngx_http_finalize_request) {
476476
--- stap_out_like
477477
finalize: -4
478478
(?:upstream fin req: error=0 eof=1 rc=502
479-
finalize: -1
480-
post subreq: rc=-1, status=200
479+
finalize: 0
480+
post subreq: rc=0, status=200
481481
|conn err: \d+: writev\(\) failed
482482
upstream fin req: error=0 eof=0 rc=502
483-
finalize: (?:-1|502)
484-
post subreq: rc=(?:-1|502), status=(?:0|200)
483+
finalize: (?:0|502)
484+
post subreq: rc=(?:0|502), status=(?:0|200)
485485
(?:finalize: 0
486486
)?)?finalize: 0
487487
@@ -492,8 +492,8 @@ post subreq: rc=(?:-1|502), status=(?:0|200)
492492
Content-Type: text/css
493493
--- response_body
494494
I do like you
495-
--- no_error_log
496-
[error]
495+
--- error_log
496+
upstream prematurely closed connection
497497
498498
499499

t/content-type.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ GET /flush
2929
--- config
3030
location /foo {
3131
charset UTF-8;
32+
charset_types application/x-javascript;
3233
default_type application/json;
3334
srcache_fetch GET /memc $uri;
3435
srcache_store PUT /memc $uri;
@@ -60,6 +61,7 @@ bar(hello
6061
--- config
6162
location /foo {
6263
charset UTF-8;
64+
charset_types application/x-javascript;
6365
default_type text/css;
6466
srcache_fetch GET /memc $uri;
6567
srcache_store PUT /memc $uri;

0 commit comments

Comments
 (0)