Browse Source

[core] fix assertion with server.error-handler (fixes #2941)

(thx andpr)

x-ref:
  "failed assertion on incoming bad request when server.error-handler option is used"
  https://redmine.lighttpd.net/issues/2941
personal/stbuehler/ci-build
Glenn Strauss 3 years ago
parent
commit
5440f04e8a
  1. 2
      src/connections.c

2
src/connections.c

@ -1193,6 +1193,8 @@ static int connection_handle_request(server *srv, connection *con) {
con->error_handler_saved_status = -con->http_status; /*(negative to flag old behavior)*/
}
if (con->request.http_version == HTTP_VERSION_UNSET) con->request.http_version = HTTP_VERSION_1_0;
buffer_copy_buffer(con->request.uri, error_handler);
connection_handle_errdoc_init(con);
con->http_status = 0; /*(after connection_handle_errdoc_init())*/

Loading…
Cancel
Save