changeset 1761:c0dfbedf52bd

Tests: adapted js_headers.t to upcoming changes in njs.
author Dmitry Volyntsev <xeioex@nginx.com>
date Thu, 26 May 2022 16:02:52 -0700
parents 3580ad4b575f
children 5ad8f0b5fa0f
files js_headers.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/js_headers.t
+++ b/js_headers.t
@@ -373,7 +373,7 @@ like(http_get('/hdr_out_array?foo=12345'
 	'r.headersOut arr');
 like(http_get('/hdr_out_array'), qr/Foo: bar/,
 	'r.headersOut arr last is empty');
-like(http_get('/hdr_out_array?foo=abc'), qr/B:bar,abc/,
+like(http_get('/hdr_out_array?foo=abc'), qr/B:bar,\s?abc/,
 	'r.headersOut get');
 like(http_get('/hdr_out_array'), qr/B:bar/, 'r.headersOut get2');
 like(http_get('/hdr_out_array?hidden=1'), qr/B:undefined/,
@@ -442,7 +442,7 @@ like(http(
 	. 'Foo: bar1' . CRLF
 	. 'Foo: bar2' . CRLF
 	. 'Host: localhost' . CRLF . CRLF
-), qr/foo: bar1,bar2/, 'r.headersIn duplicate generic');
+), qr/foo: bar1,\s?bar2/, 'r.headersIn duplicate generic');
 
 like(http(
 	'GET /raw_hdr_in?filter=foo HTTP/1.0' . CRLF