Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_auth_request_module.c @ 8880: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 | f01ab2dbcfdc |
children | 8272c823a7d0 |
comparison
equal
deleted
inserted
replaced
8879:cdc2724858ca | 8880:d26db4f82d7d |
---|---|
152 if (ho == NULL) { | 152 if (ho == NULL) { |
153 return NGX_ERROR; | 153 return NGX_ERROR; |
154 } | 154 } |
155 | 155 |
156 *ho = *h; | 156 *ho = *h; |
157 ho->next = NULL; | |
157 | 158 |
158 r->headers_out.www_authenticate = ho; | 159 r->headers_out.www_authenticate = ho; |
159 } | 160 } |
160 | 161 |
161 return ctx->status; | 162 return ctx->status; |