Skip to content

Commit 6abb404

Browse files
committed
dev: fixed test suite with nginx 1.13.6+ with openresty's patches.
1 parent af82f75 commit 6abb404

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

t/conditional-get.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ GET /cats
229229
If-Unmodified-Since: Thu, 10 May 2012 07:50:58 GMT
230230
--- response_headers
231231
Content-Type: text/html
232-
Content-Length: 182
232+
Content-Length: 186
233233
!Last-Modified
234234
--- response_body_like: 412 Precondition Failed
235235
--- error_code: 412

util/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ if [ ! -f $patch_file ]; then
1818
fi
1919
# we ignore any errors here since the target directory might have already been patched.
2020
patch --forward -p1 < $patch_file
21+
22+
patch_file=$root/../openresty/patches/ngx_http_redis-$ngx_redis_version-default_port_fix.patch
23+
if [ ! -f $patch_file ]; then
24+
echo "$patch_file: No such file" > /dev/stderr
25+
exit 1
26+
fi
27+
# we ignore any errors here since the target directory might have already been patched.
28+
patch --forward -p1 < $patch_file
29+
2130
cd $root || exit 1
2231

2332
#--without-http_memcached_module \

0 commit comments

Comments
 (0)