diff http_expect_100_continue.t @ 491:d5bf5942a8b2

Tests: disambiguated parsing of the status code.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 07 Nov 2014 13:05:07 +0300
parents 31e2acce8fa4
children 9592b440ab00
line wrap: on
line diff
--- a/http_expect_100_continue.t
+++ b/http_expect_100_continue.t
@@ -52,7 +52,7 @@ EOF
 
 ###############################################################################
 
-like(http_100_request('/', '1.1'), qr/100/, 'expect 100 continue');
+like(http_100_request('/', '1.1'), qr/ 100 /, 'expect 100 continue');
 
 # From RFC 2616, 8.2.3 Use of the 100 (Continue) Status:
 #
@@ -62,7 +62,7 @@ like(http_100_request('/', '1.1'), qr/10
 #        100 (Continue) response if such a request comes from an HTTP/1.0
 #        (or earlier) client.
 
-unlike(http_100_request('/', '1.0'), qr/100/, 'no 100 continue via http 1.0');
+unlike(http_100_request('/', '1.0'), qr/ 100 /, 'no 100 continue via http 1.0');
 
 ###############################################################################