nxt_http_parse.c (712:95538a9d4050) nxt_http_parse.c (1008:84f2370bd642)
1
2/*
3 * Copyright (C) NGINX, Inc.
4 * Copyright (C) Valentin V. Bartenev
5 */
6
7#include <nxt_main.h>
8

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

114
115
116nxt_int_t
117nxt_http_parse_request_init(nxt_http_request_parse_t *rp, nxt_mp_t *mp)
118{
119 rp->mem_pool = mp;
120
121 rp->fields = nxt_list_create(mp, 8, sizeof(nxt_http_field_t));
1
2/*
3 * Copyright (C) NGINX, Inc.
4 * Copyright (C) Valentin V. Bartenev
5 */
6
7#include <nxt_main.h>
8

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

114
115
116nxt_int_t
117nxt_http_parse_request_init(nxt_http_request_parse_t *rp, nxt_mp_t *mp)
118{
119 rp->mem_pool = mp;
120
121 rp->fields = nxt_list_create(mp, 8, sizeof(nxt_http_field_t));
122 if (nxt_slow_path(rp->fields == NULL)){
122 if (nxt_slow_path(rp->fields == NULL)) {
123 return NXT_ERROR;
124 }
125
126 rp->field_hash = NXT_HTTP_FIELD_HASH_INIT;
127
128 return NXT_OK;
129}
130

--- 1145 unchanged lines hidden ---
123 return NXT_ERROR;
124 }
125
126 rp->field_hash = NXT_HTTP_FIELD_HASH_INIT;
127
128 return NXT_OK;
129}
130

--- 1145 unchanged lines hidden ---