Skip to content

Commit a5a61d6

Browse files
authored
chore(deps): bump ngx_wasm_module to 91d447ffd0e9bb08f11cc69d1aa9128ec36b4526 (#12941)
Changes since 3bd94e61c55415ccfb0f304fa51143a7d630d6ae: * 91d447ff - feat(wasmtime) new 'cache_config' directive for compilation cache * 4ed38176 - feat(proxy-wasm) consistent context checks for all header setters * ee5890dd - feat(proxy-wasm) allow setting ':status' response pseudo-header * bb139e16 - hotfix(http) fix an expression in postpone checks * d70c87d4 - refactor(wasm) fix conflicting values in our '*_CONF' definitions * 7ee4eb45 - tests(backtraces) update backtrace formats for latest Rust toolchain * 1d4534d0 - feat(http) implement 'postpone_rewrite' + 'postpone_access' directives * 473a6705 - refactor(wasmx) store ngx_wa_conf_t as our core module context * fa9bc6b9 - chore(deps) bump Nginx to 1.25.5 * faf302c5 - chore(deps) bump OpenSSL to 3.3.0
1 parent 7b5add3 commit a5a61d6

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

.requirements

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ATC_ROUTER=ffd11db657115769bf94f0c4f915f98300bc26b6 # 1.6.2
1616
SNAPPY=23b3286820105438c5dbb9bc22f1bb85c5812c8a # 1.2.0
1717

1818
KONG_MANAGER=nightly
19-
NGX_WASM_MODULE=3bd94e61c55415ccfb0f304fa51143a7d630d6ae
19+
NGX_WASM_MODULE=91d447ffd0e9bb08f11cc69d1aa9128ec36b4526
2020
WASMER=3.1.1
2121
WASMTIME=19.0.0
2222
V8=12.0.267.17
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
message: "Bump `ngx_wasm_module` to `3bd94e61c55415ccfb0f304fa51143a7d630d6ae`"
1+
message: "Bump `ngx_wasm_module` to `91d447ffd0e9bb08f11cc69d1aa9128ec36b4526`"
22
type: dependency

spec/02-integration/20-wasm/04-proxy-wasm_spec.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ describe("proxy-wasm filters (#wasm) (#" .. strategy .. ")", function()
281281
assert.res_status(200, res)
282282
assert.response(res).has.no.header("x-via")
283283
assert.logfile().has.line([[testing in "Log"]])
284-
assert.logfile().has.line("cannot add response header: headers already sent")
284+
assert.logfile().has.line("can only set response headers before \"on_response_body\"")
285285
end)
286286

287287
pending("throw a trap", function()

spec/fixtures/proxy_wasm_filters/tests/src/routines.rs

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ pub(crate) fn add_response_header(ctx: &mut TestHttp) {
1818
let (name, value) = header.split_once('=').unwrap();
1919

2020
ctx.add_http_response_header(name, value);
21-
ctx.set_http_request_header(HEADER_NAME, None)
2221
}
2322

2423
const CONFIG_HEADER_NAME: &str = "X-PW-Resp-Header-From-Config";

spec/fixtures/proxy_wasm_filters/tests/src/test_http.rs

+7-4
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,14 @@ impl TestHttp {
9898
if cur_phase == on_phase {
9999
info!("[proxy-wasm] testing in \"{:?}\"", on_phase);
100100

101-
self.set_http_request_header(INPUT_HEADER_NAME, None);
102-
self.set_http_request_header(TEST_HEADER_NAME, None);
103-
self.set_http_request_header(PHASE_HEADER_NAME, None);
101+
if cur_phase == TestPhase::RequestHeaders || cur_phase == TestPhase::RequestBody {
102+
self.set_http_request_header(INPUT_HEADER_NAME, None);
103+
self.set_http_request_header(TEST_HEADER_NAME, None);
104+
self.set_http_request_header(PHASE_HEADER_NAME, None);
105+
106+
add_request_header(self);
107+
}
104108

105-
add_request_header(self);
106109
add_response_header(self);
107110

108111
if let Some(test) = opt_test {

0 commit comments

Comments
 (0)