nxt_h1proto.c (1457:af93c866b4f0) nxt_h1proto.c (1459:358b957ca294)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_router.h>
8#include <nxt_http.h>

--- 172 unchanged lines hidden (view full) ---

181 { nxt_string("Transfer-Encoding"), &nxt_http_proxy_skip, 0 },
182 { nxt_string("Server"), &nxt_http_proxy_skip, 0 },
183 { nxt_string("Date"), &nxt_http_proxy_date, 0 },
184 { nxt_string("Content-Length"), &nxt_http_proxy_content_length, 0 },
185};
186
187
188nxt_int_t
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_router.h>
8#include <nxt_http.h>

--- 172 unchanged lines hidden (view full) ---

181 { nxt_string("Transfer-Encoding"), &nxt_http_proxy_skip, 0 },
182 { nxt_string("Server"), &nxt_http_proxy_skip, 0 },
183 { nxt_string("Date"), &nxt_http_proxy_date, 0 },
184 { nxt_string("Content-Length"), &nxt_http_proxy_content_length, 0 },
185};
186
187
188nxt_int_t
189nxt_h1p_init(nxt_task_t *task, nxt_runtime_t *rt)
189nxt_h1p_init(nxt_task_t *task)
190{
191 nxt_int_t ret;
192
190{
191 nxt_int_t ret;
192
193 ret = nxt_http_fields_hash(&nxt_h1p_fields_hash, rt->mem_pool,
193 ret = nxt_http_fields_hash(&nxt_h1p_fields_hash,
194 nxt_h1p_fields, nxt_nitems(nxt_h1p_fields));
195
196 if (nxt_fast_path(ret == NXT_OK)) {
197 ret = nxt_http_fields_hash(&nxt_h1p_peer_fields_hash,
194 nxt_h1p_fields, nxt_nitems(nxt_h1p_fields));
195
196 if (nxt_fast_path(ret == NXT_OK)) {
197 ret = nxt_http_fields_hash(&nxt_h1p_peer_fields_hash,
198 rt->mem_pool, nxt_h1p_peer_fields,
198 nxt_h1p_peer_fields,
199 nxt_nitems(nxt_h1p_peer_fields));
200 }
201
202 return ret;
203}
204
205
206void

--- 2573 unchanged lines hidden ---
199 nxt_nitems(nxt_h1p_peer_fields));
200 }
201
202 return ret;
203}
204
205
206void

--- 2573 unchanged lines hidden ---