GH886: CONNECT should use HTTP/1.1
authorRich Salz <rsalz@openssl.org>
Sat, 19 Mar 2016 16:40:02 +0000 (12:40 -0400)
committerRich Salz <rsalz@openssl.org>
Sun, 20 Mar 2016 23:41:40 +0000 (19:41 -0400)
By default you get 0.9 which isn't widely available.
But we use HTTP/1.0 for now.
Courtesy beusink@users.github.com

Reviewed-by: Tim Hudson <tjh@openssl.org>
apps/s_client.c

index 1120377d255fd8760e64db64cf10ebecb6795ff5..6f22e6e336ee540cb07ab3ee18835e267fc9ce31 100644 (file)
@@ -2072,7 +2072,7 @@ int s_client_main(int argc, char **argv)
             BIO *fbio = BIO_new(BIO_f_buffer());
 
             BIO_push(fbio, sbio);
-            BIO_printf(fbio, "CONNECT %s\r\n\r\n", connectstr);
+            BIO_printf(fbio, "CONNECT %s HTTP/1.0\r\n\r\n", connectstr);
             (void)BIO_flush(fbio);
             /* wait for multi-line response to end CONNECT response */
             do {