nxt_http_parse.c (621:944d059f7a4b) nxt_http_parse.c (622:8ba4abc08034)
1
2/*
3 * Copyright (C) NGINX, Inc.
4 * Copyright (C) Valentin V. Bartenev
5 */
6
7#include <nxt_main.h>
8

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

456 return nxt_http_parse_field_name(rp, pos, end);
457 }
458
459 if (nxt_memcmp(ver.s.prefix, "HTTP/", 5) == 0
460 && ver.s.major >= '0' && ver.s.major <= '9'
461 && ver.s.point == '.'
462 && ver.s.minor >= '0' && ver.s.minor <= '9')
463 {
1
2/*
3 * Copyright (C) NGINX, Inc.
4 * Copyright (C) Valentin V. Bartenev
5 */
6
7#include <nxt_main.h>
8

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

456 return nxt_http_parse_field_name(rp, pos, end);
457 }
458
459 if (nxt_memcmp(ver.s.prefix, "HTTP/", 5) == 0
460 && ver.s.major >= '0' && ver.s.major <= '9'
461 && ver.s.point == '.'
462 && ver.s.minor >= '0' && ver.s.minor <= '9')
463 {
464 rp->version.ui64 = ver.ui64;
464 return NXT_HTTP_PARSE_UNSUPPORTED_VERSION;
465 }
466
467 return NXT_HTTP_PARSE_INVALID;
468}
469
470
471static nxt_int_t

--- 800 unchanged lines hidden ---
465 return NXT_HTTP_PARSE_UNSUPPORTED_VERSION;
466 }
467
468 return NXT_HTTP_PARSE_INVALID;
469}
470
471
472static nxt_int_t

--- 800 unchanged lines hidden ---