From 85a1e083af931e3179595bcf9d6ea32810813752 Mon Sep 17 00:00:00 2001 From: Axel Duch Date: Fri, 24 Jul 2020 13:10:24 +0100 Subject: [PATCH] Minor changes and renaming an NJS artifact to NXT. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is partially related to #434 issue on Github. Thanks to 洪志道 (Hong Zhi Dao). --- src/nxt_http_route.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nxt_http_route.c b/src/nxt_http_route.c index 6bdf2937..ae745f11 100644 --- a/src/nxt_http_route.c +++ b/src/nxt_http_route.c @@ -171,7 +171,7 @@ struct nxt_http_routes_s { }; -#define NJS_COOKIE_HASH \ +#define NXT_COOKIE_HASH \ (nxt_http_field_hash_end( \ nxt_http_field_hash_char( \ nxt_http_field_hash_char( \ @@ -1104,7 +1104,7 @@ nxt_http_route_pattern_create(nxt_task_t *task, nxt_mp_t *mp, test.length--; } - if (type == NXT_HTTP_ROUTE_PATTERN_EXACT && test.length != 0) { + if (type == NXT_HTTP_ROUTE_PATTERN_EXACT) { tmp.start = test.start; p = nxt_memchr(test.start, '*', test.length); @@ -2164,7 +2164,7 @@ nxt_http_route_cookies_parse(nxt_http_request_t *r) nxt_list_each(f, r->fields) { - if (f->hash != NJS_COOKIE_HASH + if (f->hash != NXT_COOKIE_HASH || f->name_length != 6 || nxt_strncasecmp(f->name, (u_char *) "Cookie", 6) != 0) {