diff options
author | Axel Duch <axel.duch@nginx.com> | 2020-07-24 13:10:24 +0100 |
---|---|---|
committer | Axel Duch <axel.duch@nginx.com> | 2020-07-24 13:10:24 +0100 |
commit | 85a1e083af931e3179595bcf9d6ea32810813752 (patch) | |
tree | 5f88cb43f7cec871057feb58b67d8d03c5ddbed4 /src/nxt_http_route.c | |
parent | 762511c5105119c45c676578f45473c7f906de60 (diff) | |
download | unit-85a1e083af931e3179595bcf9d6ea32810813752.tar.gz unit-85a1e083af931e3179595bcf9d6ea32810813752.tar.bz2 |
Minor changes and renaming an NJS artifact to NXT.
This is partially related to #434 issue on Github.
Thanks to 洪志道 (Hong Zhi Dao).
Diffstat (limited to 'src/nxt_http_route.c')
-rw-r--r-- | src/nxt_http_route.c | 6 |
1 files 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) { |