]> granicus.if.org Git - apache/commitdiff
* modules/ssl/ssl_util_ocsp.c (serialize_request): Fix query string
authorJoe Orton <jorton@apache.org>
Thu, 29 Nov 2007 16:12:59 +0000 (16:12 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 29 Nov 2007 16:12:59 +0000 (16:12 +0000)
  handling.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@599496 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_util_ocsp.c

index 9a7d0a9b37c5ae50185fd8f9aebfd9a6a9f40763..497717a6650df51a49c64c40a45323651955a1e2 100644 (file)
@@ -36,11 +36,11 @@ static BIO *serialize_request(OCSP_REQUEST *req, const apr_uri_t *uri)
 
     bio = BIO_new(BIO_s_mem());
 
-    BIO_printf(bio, "POST %s%s HTTP/1.0\r\n"
+    BIO_printf(bio, "POST %s%s%s HTTP/1.0\r\n"
                "Host: %s:%d\r\n"
                "Content-Length: %d\r\n"
                "\r\n", 
-               uri->path, uri->query ? uri->query : "",
+               uri->path, uri->query ? "?" : "", uri->query ? uri->query : "",
                uri->hostname, uri->port, len);
 
     if (i2d_OCSP_REQUEST_bio(bio, req) != 1) {