comparison src/http/ngx_http_script.c @ 8031:d26db4f82d7d

All known output headers can be linked lists now. The h->next pointer properly provided as NULL in all cases where known output headers are added. Note that there are 3rd party modules which might not do this, and it might be risky to rely on this for arbitrary headers.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 30 May 2022 21:25:45 +0300
parents 3ab8e1e2f0f7
children
comparison
equal deleted inserted replaced
8030:cdc2724858ca 8031:d26db4f82d7d
1241 e->status = NGX_HTTP_INTERNAL_SERVER_ERROR; 1241 e->status = NGX_HTTP_INTERNAL_SERVER_ERROR;
1242 return; 1242 return;
1243 } 1243 }
1244 1244
1245 r->headers_out.location->hash = 1; 1245 r->headers_out.location->hash = 1;
1246 r->headers_out.location->next = NULL;
1246 ngx_str_set(&r->headers_out.location->key, "Location"); 1247 ngx_str_set(&r->headers_out.location->key, "Location");
1247 r->headers_out.location->value = e->buf; 1248 r->headers_out.location->value = e->buf;
1248 1249
1249 e->ip += sizeof(ngx_http_script_regex_end_code_t); 1250 e->ip += sizeof(ngx_http_script_regex_end_code_t);
1250 return; 1251 return;