Skip to content

Commit

Permalink
tests(proxy-wasm) check that querystring works in dispatch_http_call
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Nov 21, 2024
1 parent 9238d4a commit 67d48a3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions t/03-proxy_wasm/hfuncs/130-proxy_dispatch_http.t
Original file line number Diff line number Diff line change
Expand Up @@ -1329,3 +1329,31 @@ cannot override the "Host" header, skipping
cannot override the "Connection" header, skipping
--- no_error_log
[error]



=== TEST 51: proxy_wasm - dispatch_http_call() can use ':path' with querystring
--- load_nginx_modules: ngx_http_echo_module
--- wasm_modules: hostcalls
--- config
location /dispatched {
return 200 "Hello back $request_uri $uri $is_args $args";
}

location /t {
proxy_wasm hostcalls 'on=request_body \
test=/t/dispatch_http_call \
host=127.0.0.1:$TEST_NGINX_SERVER_PORT \
path=/dispatched?foo=bar \
on_http_call_response=echo_response_body';
echo failed;
}
--- request
GET /t

Hello world
--- response_body
Hello back /dispatched?foo=bar /dispatched ? foo=bar
--- no_error_log
[error]
[crit]

0 comments on commit 67d48a3

Please sign in to comment.