Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ env:
- LD_LIBRARY_PATH=$LUAJIT_LIB:$LD_LIBRARY_PATH
- DRIZZLE_VER=2011.07.21
- TEST_NGINX_SLEEP=0.006
- MALLOC_PERTURB_=9
jobs:
- NGINX_VERSION=1.21.4 OPENSSL_VER=1.1.0l OPENSSL_PATCH_VER=1.1.0d
- NGINX_VERSION=1.21.4 OPENSSL_VER=1.1.1s OPENSSL_PATCH_VER=1.1.1f
Expand Down
1 change: 1 addition & 0 deletions src/ngx_http_lua_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ ngx_http_lua_ngx_redirect(lua_State *L)

h->value.len = len;
h->value.data = uri;
h->next = NULL;
ngx_str_set(&h->key, "Location");

r->headers_out.status = rc;
Expand Down
1 change: 1 addition & 0 deletions src/ngx_http_lua_headers_in.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ ngx_http_set_header_helper(ngx_http_request_t *r, ngx_http_lua_header_val_t *hv,

h->key = hv->key;
h->value = *value;
h->next = NULL;

h->lowcase_key = ngx_pnalloc(r->pool, h->key.len);
if (h->lowcase_key == NULL) {
Expand Down
2 changes: 2 additions & 0 deletions src/ngx_http_lua_headers_out.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ ngx_http_set_header_helper(ngx_http_request_t *r, ngx_http_lua_header_val_t *hv,

h->key = hv->key;
h->value = *value;
h->next = NULL;

h->lowcase_key = ngx_pnalloc(r->pool, h->key.len);
if (h->lowcase_key == NULL) {
Expand Down Expand Up @@ -444,6 +445,7 @@ ngx_http_set_builtin_multi_header(ngx_http_request_t *r,
}

ho->key = hv->key;
ho->next = NULL;
*ph = ho;

return NGX_OK;
Expand Down