From 23979a1e3b6cd2af9c386e2ee9d9288a0ae3e2cf Mon Sep 17 00:00:00 2001 From: pzs Date: Sat, 24 Oct 2020 11:06:06 +0200 Subject: [PATCH] Use HTTP 1.1 --- src/NavOnlineInvoice/Connector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NavOnlineInvoice/Connector.php b/src/NavOnlineInvoice/Connector.php index 994d9a4..487a64d 100644 --- a/src/NavOnlineInvoice/Connector.php +++ b/src/NavOnlineInvoice/Connector.php @@ -133,7 +133,7 @@ private function getCurlHandle($url, $requestBody) { curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_POSTFIELDS, $requestBody); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); + curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); if ($this->config->curlTimeout) { curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);