nxt_http_parse_test.c (574:1ec560778942) nxt_http_parse_test.c (575:52c8c2a000d0)
1
2/*
3 * Copyright (C) NGINX, Inc.
4 * Copyright (C) Valentin V. Bartenev
5 */
6
7#include <nxt_main.h>
8#include "nxt_tests.h"

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

277 {
278 nxt_string("GET / HTTP/1.1\r\n"
279 "Host: exa\rmple.com\r\n\r\n"),
280 NXT_HTTP_PARSE_INVALID,
281 NULL, { NULL }
282 },
283 {
284 nxt_string("GET / HTTP/1.1\r\n"
1
2/*
3 * Copyright (C) NGINX, Inc.
4 * Copyright (C) Valentin V. Bartenev
5 */
6
7#include <nxt_main.h>
8#include "nxt_tests.h"

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

277 {
278 nxt_string("GET / HTTP/1.1\r\n"
279 "Host: exa\rmple.com\r\n\r\n"),
280 NXT_HTTP_PARSE_INVALID,
281 NULL, { NULL }
282 },
283 {
284 nxt_string("GET / HTTP/1.1\r\n"
285 "Host: exa\bmple.com\r\n\r\n"),
286 NXT_HTTP_PARSE_INVALID,
287 NULL, { NULL }
288 },
289 {
290 nxt_string("GET / HTTP/1.1\r\n"
291 "Host: пример.испытание\r\n\r\n"),
292 NXT_HTTP_PARSE_INVALID,
293 NULL, { NULL }
294 },
295 {
296 nxt_string("GET / HTTP/1.1\r\n"
297 "Host: xn--e1afmkfd.xn--80akhbyknj4f\r\n\r\n"),
298 NXT_DONE,
299 NULL, { NULL }
300 },
301 {
302 nxt_string("GET / HTTP/1.1\r\n"
285 "X-Unknown-Header: value\r\n"
286 "X-Good-Header: value\r\n\r\n"),
287 NXT_DONE,
288 &nxt_http_parse_test_fields,
289 { .result = NXT_OK }
290 },
291 {
292 nxt_string("GET / HTTP/1.1\r\n"

--- 495 unchanged lines hidden ---
303 "X-Unknown-Header: value\r\n"
304 "X-Good-Header: value\r\n\r\n"),
305 NXT_DONE,
306 &nxt_http_parse_test_fields,
307 { .result = NXT_OK }
308 },
309 {
310 nxt_string("GET / HTTP/1.1\r\n"

--- 495 unchanged lines hidden ---