comparison src/http/modules/ngx_http_memcached_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 7731c710796f
children
comparison
equal deleted inserted replaced
8030:cdc2724858ca 8031:d26db4f82d7d
399 if (h == NULL) { 399 if (h == NULL) {
400 return NGX_ERROR; 400 return NGX_ERROR;
401 } 401 }
402 402
403 h->hash = 1; 403 h->hash = 1;
404 h->next = NULL;
404 ngx_str_set(&h->key, "Content-Encoding"); 405 ngx_str_set(&h->key, "Content-Encoding");
405 ngx_str_set(&h->value, "gzip"); 406 ngx_str_set(&h->value, "gzip");
406 r->headers_out.content_encoding = h; 407 r->headers_out.content_encoding = h;
407 } 408 }
408 409