mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
scepclient: Use HTTP 1.0 for all requests.
This commit is contained in:
parent
1d81b1ab18
commit
f79b665243
@ -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);
|
snprintf(complete_url, len, "%s?operation=%s", url, operation);
|
||||||
|
|
||||||
status = lib->fetcher->fetch(lib->fetcher, complete_url, response,
|
status = lib->fetcher->fetch(lib->fetcher, complete_url, response,
|
||||||
|
FETCH_HTTP_VERSION_1_0,
|
||||||
FETCH_REQUEST_DATA, pkcs7,
|
FETCH_REQUEST_DATA, pkcs7,
|
||||||
FETCH_REQUEST_TYPE, "",
|
FETCH_REQUEST_TYPE, "",
|
||||||
FETCH_REQUEST_HEADER, "Expect:",
|
FETCH_REQUEST_HEADER, "Expect:",
|
||||||
@ -361,6 +362,7 @@ bool scep_http_request(const char *url, chunk_t pkcs7, scep_op_t op,
|
|||||||
url, operation);
|
url, operation);
|
||||||
|
|
||||||
status = lib->fetcher->fetch(lib->fetcher, complete_url, response,
|
status = lib->fetcher->fetch(lib->fetcher, complete_url, response,
|
||||||
|
FETCH_HTTP_VERSION_1_0,
|
||||||
FETCH_END);
|
FETCH_END);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user