mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
core, modules: like r1657897 but for core and other modules than mod_proxy.
More uses of ap_map_http_request_error() and AP_FILTER_ERROR so that we never return an HTTP error status from a handler if some filter generated a response already. That is, from a handler, either ap_get_brigade() (an input filter) returned AP_FILTER_ERROR and we must forward it to ap_die(), or ap_pass_brigade() (an output filter) failed with any status and we must return AP_FILTER_ERROR in any case for ap_die() to determine whether a response is needed or not. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1665625 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -133,7 +133,7 @@ int ssl_hook_ReadReq(request_rec *r)
|
||||
&& (upgrade = apr_table_get(r->headers_in, "Upgrade")) != NULL
|
||||
&& ap_find_token(r->pool, upgrade, "TLS/1.0")) {
|
||||
if (upgrade_connection(r)) {
|
||||
return HTTP_INTERNAL_SERVER_ERROR;
|
||||
return AP_FILTER_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user