summaryrefslogtreecommitdiffhomepage
path: root/src/c/libunit-wasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/libunit-wasm.c')
-rw-r--r--src/c/libunit-wasm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c/libunit-wasm.c b/src/c/libunit-wasm.c
index 11272ed..c0c02c5 100644
--- a/src/c/libunit-wasm.c
+++ b/src/c/libunit-wasm.c
@@ -234,13 +234,13 @@ void luw_http_hdr_iter(luw_ctx_t *ctx,
}
}
-const char *luw_http_hdr_get_value(luw_ctx_t *ctx, const char *hdr)
+const char *luw_http_hdr_get_value(const luw_ctx_t *ctx, const char *hdr)
{
luw_http_hdr_iter_t *iter;
const char *name;
const char *value;
- luw_foreach_http_hdr((*ctx), iter, name, value) {
+ luw_foreach_http_hdr(((luw_ctx_t)*ctx), iter, name, value) {
if (strcasecmp(name, hdr) == 0)
return value;
}