From: Joe Orton Date: Thu, 29 Nov 2007 16:12:59 +0000 (+0000) Subject: * modules/ssl/ssl_util_ocsp.c (serialize_request): Fix query string X-Git-Tag: 2.3.0~1205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc7fdf4d260fa44c701719a9ee2975a364fdc785;p=thirdparty%2Fapache%2Fhttpd.git * modules/ssl/ssl_util_ocsp.c (serialize_request): Fix query string handling. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@599496 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_util_ocsp.c b/modules/ssl/ssl_util_ocsp.c index 9a7d0a9b37c..497717a6650 100644 --- a/modules/ssl/ssl_util_ocsp.c +++ b/modules/ssl/ssl_util_ocsp.c @@ -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) {