[mod_fastcgi,mod_scgi] error on oversized request (fixes #2905)
regression in lighttpd 1.4.49 and lighttpd 1.4.50 (thx slawomir.pryczek) x-ref "oversized fcgi requests should fail gracefully" https://redmine.lighttpd.net/issues/2905
This commit is contained in:
parent
a458c2e731
commit
4992c4de10
|
@ -243,6 +243,7 @@ static handler_t fcgi_create_env(server *srv, handler_ctx *hctx) {
|
|||
|
||||
if (0 != http_cgi_headers(srv, con, &opts, fcgi_env_add, fcgi_env)) {
|
||||
con->http_status = 400;
|
||||
con->mode = DIRECT;
|
||||
buffer_free(fcgi_env);
|
||||
return HANDLER_FINISHED;
|
||||
} else {
|
||||
|
|
|
@ -160,6 +160,7 @@ static handler_t scgi_create_env(server *srv, handler_ctx *hctx) {
|
|||
if (0 != http_cgi_headers(srv, con, &opts, scgi_env_add, scgi_env)) {
|
||||
buffer_free(scgi_env);
|
||||
con->http_status = 400;
|
||||
con->mode = DIRECT;
|
||||
return HANDLER_FINISHED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue