Mercurial > hg > nginx
comparison src/http/modules/perl/nginx.xs @ 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 | ca78312db071 |
children | 861f076eab72 |
comparison
equal
deleted
inserted
replaced
8030:cdc2724858ca | 8031:d26db4f82d7d |
---|---|
571 ctx->error = 1; | 571 ctx->error = 1; |
572 croak("ngx_list_push() failed"); | 572 croak("ngx_list_push() failed"); |
573 } | 573 } |
574 | 574 |
575 header->hash = 1; | 575 header->hash = 1; |
576 header->next = NULL; | |
576 | 577 |
577 if (ngx_http_perl_sv2str(aTHX_ r, &header->key, key) != NGX_OK) { | 578 if (ngx_http_perl_sv2str(aTHX_ r, &header->key, key) != NGX_OK) { |
578 header->hash = 0; | 579 header->hash = 0; |
579 ctx->error = 1; | 580 ctx->error = 1; |
580 croak("ngx_http_perl_sv2str() failed"); | 581 croak("ngx_http_perl_sv2str() failed"); |