Created
February 5, 2026 03:04
-
-
Save xeioex/78ade2276e393e313e758fc88b739b38 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/examples/t/async_request.t b/examples/t/async_request.t | |
| index 3d09ddd5..88b1e37e 100644 | |
| --- a/examples/t/async_request.t | |
| +++ b/examples/t/async_request.t | |
| @@ -21,7 +21,7 @@ use Test::Nginx; | |
| select STDERR; $| = 1; | |
| select STDOUT; $| = 1; | |
| -my $t = Test::Nginx->new()->has(qw/http/)->plan(1) | |
| +my $t = Test::Nginx->new()->has(qw/http proxy/)->plan(2) | |
| ->write_file_expand('nginx.conf', <<"EOF"); | |
| %%TEST_GLOBALS%% | |
| @@ -40,6 +40,12 @@ http { | |
| location / { | |
| async_request on; | |
| + async_uri /proxy; | |
| + } | |
| + | |
| + location /non_existing { | |
| + async_request on; | |
| + async_uri /non_existing_upstream; | |
| } | |
| location /proxy { | |
| @@ -63,4 +69,6 @@ EOF | |
| $t->write_file('index.html', ''); | |
| $t->run(); | |
| -like(http_get('/'), qr/200 OK.*Hello from backend/s, 'async subrequest works'); | |
| +like(http_get('/'), qr/200 OK.*Hello from backend/s, 'async subrequest'); | |
| +like(http_get('/non_existing'), qr/404 Not Found/s, | |
| + 'async subrequest to non-existing upstream'); | |
| diff --git a/nginx-src/nginx b/nginx-src/nginx | |
| index 073ed332..481d28cb 160000 | |
| --- a/nginx-src/nginx | |
| +++ b/nginx-src/nginx | |
| @@ -1 +1 @@ | |
| -Subproject commit 073ed33202286a975964c3a08f522bf01dc6fecf | |
| +Subproject commit 481d28cb4e04c8096b9b6134856891dc52ecc68f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment