From 8dce3b870b923db810d232e408c530f938f75d80 Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Mon, 28 Aug 2023 12:37:01 +0100 Subject: libunit-wasm: Pass ctx into luw_http_hdr_get_value() as const Technically the context pointer can be passed in const even though we then un-const it passing it to the luw_foreach_http_hdr() macro. Signed-off-by: Andrew Clayton --- API-C.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'API-C.md') diff --git a/API-C.md b/API-C.md index c0cfc02..aa44149 100644 --- a/API-C.md +++ b/API-C.md @@ -711,7 +711,7 @@ luw_http_hdr_iter(&ctx, hdr_iter_func, NULL); ### luw_http_hdr_get_value ```C -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); ``` Given a HTTP header _hdr_ this function will look it up in the request and -- cgit