Skip to content

Commit b5c36b3

Browse files
committed
Tests: adapted js_headers.t to upcoming changes in njs.
1 parent 8b4ecad commit b5c36b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js_headers.t

+2-2
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ like(http_get('/hdr_out_array?foo=12345'), qr/Foo: bar\r\nFoo: 12345/,
373373
'r.headersOut arr');
374374
like(http_get('/hdr_out_array'), qr/Foo: bar/,
375375
'r.headersOut arr last is empty');
376-
like(http_get('/hdr_out_array?foo=abc'), qr/B:bar,abc/,
376+
like(http_get('/hdr_out_array?foo=abc'), qr/B:bar,\s?abc/,
377377
'r.headersOut get');
378378
like(http_get('/hdr_out_array'), qr/B:bar/, 'r.headersOut get2');
379379
like(http_get('/hdr_out_array?hidden=1'), qr/B:undefined/,
@@ -442,7 +442,7 @@ like(http(
442442
. 'Foo: bar1' . CRLF
443443
. 'Foo: bar2' . CRLF
444444
. 'Host: localhost' . CRLF . CRLF
445-
), qr/foo: bar1,bar2/, 'r.headersIn duplicate generic');
445+
), qr/foo: bar1,\s?bar2/, 'r.headersIn duplicate generic');
446446

447447
like(http(
448448
'GET /raw_hdr_in?filter=foo HTTP/1.0' . CRLF

0 commit comments

Comments
 (0)