scepclient: Use HTTP 1.0 for all requests.
authorTobias Brunner <tobias@strongswan.org>
Wed, 30 May 2012 13:02:32 +0000 (15:02 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 11 Jun 2012 15:33:28 +0000 (17:33 +0200)
src/scepclient/scep.c

index 433fc6b..bed898b 100644 (file)
@@ -344,6 +344,7 @@ bool scep_http_request(const char *url, chunk_t pkcs7, scep_op_t op,
                        snprintf(complete_url, len, "%s?operation=%s", url, operation);
 
                        status = lib->fetcher->fetch(lib->fetcher, complete_url, response,
+                                                                                FETCH_HTTP_VERSION_1_0,
                                                                                 FETCH_REQUEST_DATA, pkcs7,
                                                                                 FETCH_REQUEST_TYPE, "",
                                                                                 FETCH_REQUEST_HEADER, "Expect:",
@@ -361,6 +362,7 @@ bool scep_http_request(const char *url, chunk_t pkcs7, scep_op_t op,
                                 url, operation);
 
                status = lib->fetcher->fetch(lib->fetcher, complete_url, response,
+                                                                        FETCH_HTTP_VERSION_1_0,
                                                                         FETCH_END);
        }