Skip to content

Commit

Permalink
Fixes: 64934e5 ("HTTP: Introduce quoted target marker in HTTP parsing")
Browse files Browse the repository at this point in the history
Reviewed-by: Andrew Clayton <[email protected]>
  • Loading branch information
hongzhidao committed Apr 17, 2024
1 parent a4dbee1 commit 678c056
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/nxt_http_parse_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -762,15 +762,14 @@ nxt_http_parse_test_request_line(nxt_http_request_parse_t *rp,
return NXT_ERROR;
}

if (rp->complex_target != (test->complex_target | test->quoted_target)) {
if (rp->complex_target != test->complex_target) {
nxt_log_alert(log, "http parse test case failed:\n"
" - request:\n\"%V\"\n"
" - complex_target: %d (expected: %d)",
request, rp->complex_target, test->complex_target);
return NXT_ERROR;
}

#if 0
if (rp->quoted_target != test->quoted_target) {
nxt_log_alert(log, "http parse test case failed:\n"
" - request:\n\"%V\"\n"
Expand All @@ -779,6 +778,7 @@ nxt_http_parse_test_request_line(nxt_http_request_parse_t *rp,
return NXT_ERROR;
}

#if 0
if (rp->space_in_target != test->space_in_target) {
nxt_log_alert(log, "http parse test case failed:\n"
" - request:\n\"%V\"\n"
Expand Down

0 comments on commit 678c056

Please sign in to comment.