mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 12:22:41 +08:00
return 400 response
This commit is contained in:
parent
6fe1303fb5
commit
543a6ae513
@ -836,7 +836,7 @@ ngx_http_process_request_headers(ngx_event_t *rev)
|
||||
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
||||
"client sent too long header line: \"%V\"",
|
||||
&header);
|
||||
ngx_http_close_request(r, NGX_HTTP_BAD_REQUEST);
|
||||
ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -948,7 +948,7 @@ ngx_http_process_request_headers(ngx_event_t *rev)
|
||||
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
||||
"client sent invalid header line: \"%V\\r...\"",
|
||||
&header);
|
||||
ngx_http_close_request(r, NGX_HTTP_BAD_REQUEST);
|
||||
ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user