We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26809e7 commit 15197e7Copy full SHA for 15197e7
src/ngx_http_lua_headers.c
@@ -496,7 +496,7 @@ ngx_http_lua_ngx_resp_get_headers(lua_State *L)
496
len = ngx_snprintf(p, NGX_OFF_T_LEN, "%O",
497
r->headers_out.content_length_n) - p;
498
499
- lua_pushfstring(L, "%s", (char *) p, len);
+ lua_pushlstring(L, (char *) p, len);
500
501
} else {
502
lua_pushfstring(L, "%d", (int) r->headers_out.content_length_n);
0 commit comments