Deleted
Added
nxt_http_parse.c (704:1fcac04f0a15) | nxt_http_parse.c (712:95538a9d4050) |
---|---|
1 2/* 3 * Copyright (C) NGINX, Inc. 4 * Copyright (C) Valentin V. Bartenev 5 */ 6 7#include <nxt_main.h> 8 --- 685 unchanged lines hidden (view full) --- 694 695static u_char * 696nxt_http_lookup_field_end(u_char *p, u_char *end) 697{ 698 while (nxt_fast_path(end - p >= 16)) { 699 700#define nxt_field_end_test_char(ch) \ 701 \ | 1 2/* 3 * Copyright (C) NGINX, Inc. 4 * Copyright (C) Valentin V. Bartenev 5 */ 6 7#include <nxt_main.h> 8 --- 685 unchanged lines hidden (view full) --- 694 695static u_char * 696nxt_http_lookup_field_end(u_char *p, u_char *end) 697{ 698 while (nxt_fast_path(end - p >= 16)) { 699 700#define nxt_field_end_test_char(ch) \ 701 \ |
702 /* Values below 0x20 become more than 0xDF. */ \ 703 if (nxt_slow_path((u_char) ((ch) - 0x20) > 0x5E)) { \ | 702 if (nxt_slow_path((ch) < 0x20)) { \ |
704 return &(ch); \ 705 } 706 707/* enddef */ 708 709 nxt_field_end_test_char(p[0]); 710 nxt_field_end_test_char(p[1]); 711 nxt_field_end_test_char(p[2]); --- 565 unchanged lines hidden --- | 703 return &(ch); \ 704 } 705 706/* enddef */ 707 708 nxt_field_end_test_char(p[0]); 709 nxt_field_end_test_char(p[1]); 710 nxt_field_end_test_char(p[2]); --- 565 unchanged lines hidden --- |