From: Cliff Woolley Date: Fri, 5 Apr 2002 07:31:44 +0000 (+0000) Subject: Get the HTTP-on-HTTPS hint to come through again. We're in AP_MODE_GETLINE X-Git-Tag: 2.0.35~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1c583494ed5cdbd0540f4fd287ecb2e7cc30b85;p=apache Get the HTTP-on-HTTPS hint to come through again. We're in AP_MODE_GETLINE at this point, so the \r\n\r\n just confuses the http input filter. One concern: this patch is only correct as long as we only ever call this function while in AP_MODE_GETLINE. Ideally we would account for the mode and return the newlines if not in GETLINE mode, but at the moment it doesn't seem to matter. Reviewed by: Doug MacEachern git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94453 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_io.c b/modules/ssl/ssl_engine_io.c index da7a8a23a9..4b38f3dccd 100644 --- a/modules/ssl/ssl_engine_io.c +++ b/modules/ssl/ssl_engine_io.c @@ -736,7 +736,7 @@ static apr_status_t ssl_io_input_getline(ssl_io_input_ctx_t *ctx, } #define HTTP_ON_HTTPS_PORT \ - "GET /mod_ssl:error:HTTP-request HTTP/1.0\r\n\r\n" + "GET /mod_ssl:error:HTTP-request HTTP/1.0" #define HTTP_ON_HTTPS_PORT_BUCKET(alloc) \ apr_bucket_immortal_create(HTTP_ON_HTTPS_PORT, \