comparison src/http/ngx_http_special_response.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 ecc0ae881a25
children 697f452bc033
comparison
equal deleted inserted replaced
8030:cdc2724858ca 8031:d26db4f82d7d
647 { 647 {
648 r->err_status = NGX_HTTP_MOVED_TEMPORARILY; 648 r->err_status = NGX_HTTP_MOVED_TEMPORARILY;
649 } 649 }
650 650
651 location->hash = 1; 651 location->hash = 1;
652 location->next = NULL;
652 ngx_str_set(&location->key, "Location"); 653 ngx_str_set(&location->key, "Location");
653 location->value = uri; 654 location->value = uri;
654 655
655 ngx_http_clear_location(r); 656 ngx_http_clear_location(r);
656 657