httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@covalent.net>
Subject Re: fix t/ssl/http.t
Date Wed, 03 Apr 2002 04:26:27 GMT
this is not quite fixed.  currently does return 400 Bad Request, but 
reports:
"Your browser sent a request that this server could not understand.
Request header field is missing colon separator."

with the patch below it properly reports:
"Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.

     Hint: https://localhost:8530/"

this is strange.

--- modules/ssl/ssl_engine_io.c 2 Apr 2002 17:30:08 -0000       1.71
+++ modules/ssl/ssl_engine_io.c 3 Apr 2002 04:19:23 -0000
@@ -740,7 +740,7 @@
 
 #define HTTP_ON_HTTPS_PORT_BUCKET(alloc) \
     apr_bucket_immortal_create(HTTP_ON_HTTPS_PORT, \
-                               sizeof(HTTP_ON_HTTPS_PORT) - 1, \
+                               sizeof(HTTP_ON_HTTPS_PORT), \
                                alloc)
 
 static void ssl_io_filter_disable(ap_filter_t *f)



Mime
View raw message