comparison src/http/modules/ngx_http_proxy_module.c @ 8032:2025aae94739

Upstream: all known headers in u->headers_in are linked lists now.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 30 May 2022 21:25:46 +0300
parents ef6a3a99a81a
children 2bf7792c262e
comparison
equal deleted inserted replaced
8031:d26db4f82d7d 8032:2025aae94739
1963 ngx_hash('s', 'e'), 'r'), 'v'), 'e'), 'r'); 1963 ngx_hash('s', 'e'), 'r'), 'v'), 'e'), 'r');
1964 1964
1965 ngx_str_set(&h->key, "Server"); 1965 ngx_str_set(&h->key, "Server");
1966 ngx_str_null(&h->value); 1966 ngx_str_null(&h->value);
1967 h->lowcase_key = (u_char *) "server"; 1967 h->lowcase_key = (u_char *) "server";
1968 h->next = NULL;
1968 } 1969 }
1969 1970
1970 if (r->upstream->headers_in.date == NULL) { 1971 if (r->upstream->headers_in.date == NULL) {
1971 h = ngx_list_push(&r->upstream->headers_in.headers); 1972 h = ngx_list_push(&r->upstream->headers_in.headers);
1972 if (h == NULL) { 1973 if (h == NULL) {
1976 h->hash = ngx_hash(ngx_hash(ngx_hash('d', 'a'), 't'), 'e'); 1977 h->hash = ngx_hash(ngx_hash(ngx_hash('d', 'a'), 't'), 'e');
1977 1978
1978 ngx_str_set(&h->key, "Date"); 1979 ngx_str_set(&h->key, "Date");
1979 ngx_str_null(&h->value); 1980 ngx_str_null(&h->value);
1980 h->lowcase_key = (u_char *) "date"; 1981 h->lowcase_key = (u_char *) "date";
1982 h->next = NULL;
1981 } 1983 }
1982 1984
1983 /* clear content length if response is chunked */ 1985 /* clear content length if response is chunked */
1984 1986
1985 u = r->upstream; 1987 u = r->upstream;