Skip to content

Commit

Permalink
Fix HTTP/2 errors with cURL post (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpdevteam authored and colinmollenhour committed Jun 4, 2020
1 parent 1163f61 commit d638042
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Varien/Http/Adapter/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ public function write($method, $url, $http_ver = '1.1', $headers = array(), $bod
$options = array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HEADER => $header
CURLOPT_HEADER => $header,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1
);
if ($method == Zend_Http_Client::POST) {
$options[CURLOPT_POST] = true;
Expand Down

0 comments on commit d638042

Please sign in to comment.