nxt_http_route.c (2077:624e51cfe97a) nxt_http_route.c (2078:0996dd223cdd)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_router.h>
8#include <nxt_http.h>

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

927 }
928
929 return rule;
930}
931
932
933nxt_http_route_addr_rule_t *
934nxt_http_route_addr_rule_create(nxt_task_t *task, nxt_mp_t *mp,
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_router.h>
8#include <nxt_http.h>

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

927 }
928
929 return rule;
930}
931
932
933nxt_http_route_addr_rule_t *
934nxt_http_route_addr_rule_create(nxt_task_t *task, nxt_mp_t *mp,
935 nxt_conf_value_t *cv)
935 nxt_conf_value_t *cv)
936{
937 size_t size;
938 uint32_t i, n;
939 nxt_conf_value_t *value;
940 nxt_http_route_addr_rule_t *addr_rule;
941 nxt_http_route_addr_pattern_t *pattern;
942
943 n = nxt_conf_array_elements_count_or_1(cv);

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

2289 start, p);
2290 if (nxt_slow_path(nv == NULL)) {
2291 return NXT_ERROR;
2292 }
2293 }
2294
2295 name = NULL;
2296 start = p + 1;
936{
937 size_t size;
938 uint32_t i, n;
939 nxt_conf_value_t *value;
940 nxt_http_route_addr_rule_t *addr_rule;
941 nxt_http_route_addr_pattern_t *pattern;
942
943 n = nxt_conf_array_elements_count_or_1(cv);

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

2289 start, p);
2290 if (nxt_slow_path(nv == NULL)) {
2291 return NXT_ERROR;
2292 }
2293 }
2294
2295 name = NULL;
2296 start = p + 1;
2297 }
2297 }
2298 }
2299
2300 if (name != NULL) {
2301 nv = nxt_http_route_cookie(cookies, name, name_length, start, p);
2302 if (nxt_slow_path(nv == NULL)) {
2303 return NXT_ERROR;
2304 }
2305 }

--- 206 unchanged lines hidden ---
2298 }
2299
2300 if (name != NULL) {
2301 nv = nxt_http_route_cookie(cookies, name, name_length, start, p);
2302 if (nxt_slow_path(nv == NULL)) {
2303 return NXT_ERROR;
2304 }
2305 }

--- 206 unchanged lines hidden ---