mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
When receiving http on https, send the error response with http 1.0
It is important that we send a proper error status, or search engines may index the error message. PR: 50823 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1328325 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -140,7 +140,7 @@ int ssl_hook_ReadReq(request_rec *r)
|
||||
return DECLINED;
|
||||
}
|
||||
|
||||
if (sslconn->non_ssl_request) {
|
||||
if (sslconn->non_ssl_request == NON_SSL_SET_ERROR_MSG) {
|
||||
const char *errmsg;
|
||||
char *thisurl;
|
||||
char *thisport = "";
|
||||
@@ -169,8 +169,7 @@ int ssl_hook_ReadReq(request_rec *r)
|
||||
/* Now that we have caught this error, forget it. we are done
|
||||
* with using SSL on this request.
|
||||
*/
|
||||
sslconn->non_ssl_request = 0;
|
||||
|
||||
sslconn->non_ssl_request = NON_SSL_OK;
|
||||
|
||||
return HTTP_BAD_REQUEST;
|
||||
}
|
||||
|
Reference in New Issue
Block a user