mirror of
https://github.com/nginx/nginx.git
synced 2025-08-01 11:16:14 +08:00
r1428 merge:
return 400 response
This commit is contained in:
parent
49ee282ba1
commit
7c98152428
@ -837,7 +837,7 @@ ngx_http_process_request_headers(ngx_event_t *rev)
|
|||||||
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
||||||
"client sent too long header line: \"%V\"",
|
"client sent too long header line: \"%V\"",
|
||||||
&header);
|
&header);
|
||||||
ngx_http_close_request(r, NGX_HTTP_BAD_REQUEST);
|
ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -949,7 +949,7 @@ ngx_http_process_request_headers(ngx_event_t *rev)
|
|||||||
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
||||||
"client sent invalid header line: \"%V\\r...\"",
|
"client sent invalid header line: \"%V\\r...\"",
|
||||||
&header);
|
&header);
|
||||||
ngx_http_close_request(r, NGX_HTTP_BAD_REQUEST);
|
ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user