Commit a4a00bcc authored by Cliff Woolley's avatar Cliff Woolley
Browse files

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/modules/ssl@94453 13f79535-47bb-0310-9956-ffa450edef68
parent f07cf357
Loading
Loading
Loading
Loading
+1 −1
Changes for ssl_engine_io.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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, \