comparison src/http/modules/ngx_http_dav_module.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 1bde031b59ff
children
comparison
equal deleted inserted replaced
8030:cdc2724858ca 8031:d26db4f82d7d
1080 if (r->headers_out.location == NULL) { 1080 if (r->headers_out.location == NULL) {
1081 return NGX_ERROR; 1081 return NGX_ERROR;
1082 } 1082 }
1083 1083
1084 r->headers_out.location->hash = 1; 1084 r->headers_out.location->hash = 1;
1085 r->headers_out.location->next = NULL;
1085 ngx_str_set(&r->headers_out.location->key, "Location"); 1086 ngx_str_set(&r->headers_out.location->key, "Location");
1086 1087
1087 escape = 2 * ngx_escape_uri(NULL, r->uri.data, r->uri.len, NGX_ESCAPE_URI); 1088 escape = 2 * ngx_escape_uri(NULL, r->uri.data, r->uri.len, NGX_ESCAPE_URI);
1088 1089
1089 if (escape) { 1090 if (escape) {