Minor changes and renaming an NJS artifact to NXT.

This is partially related to #434 issue on Github.
Thanks to 洪志道 (Hong Zhi Dao).
This commit is contained in:
Axel Duch
2020-07-24 13:10:24 +01:00
parent 762511c510
commit 85a1e083af

View File

@@ -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_end( \
nxt_http_field_hash_char( \ nxt_http_field_hash_char( \
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--; test.length--;
} }
if (type == NXT_HTTP_ROUTE_PATTERN_EXACT && test.length != 0) { if (type == NXT_HTTP_ROUTE_PATTERN_EXACT) {
tmp.start = test.start; tmp.start = test.start;
p = nxt_memchr(test.start, '*', test.length); 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) { nxt_list_each(f, r->fields) {
if (f->hash != NJS_COOKIE_HASH if (f->hash != NXT_COOKIE_HASH
|| f->name_length != 6 || f->name_length != 6
|| nxt_strncasecmp(f->name, (u_char *) "Cookie", 6) != 0) || nxt_strncasecmp(f->name, (u_char *) "Cookie", 6) != 0)
{ {