Skip to content

Commit

Permalink
ENGCOM-3710: Curl - allow setting HTTP version #19845
Browse files Browse the repository at this point in the history
  • Loading branch information
sidolov authored Jan 31, 2019
2 parents b8f01db + c93e39b commit 64c6d1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/internal/Magento/Framework/HTTP/Adapter/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ public function write($method, $url, $http_ver = '1.1', $headers = [], $body = '

// set url to post to
curl_setopt($this->_getResource(), CURLOPT_URL, $url);
curl_setopt($this->_getResource(), CURLOPT_HTTP_VERSION, $http_ver);
curl_setopt($this->_getResource(), CURLOPT_RETURNTRANSFER, true);
if ($method == \Zend_Http_Client::POST) {
curl_setopt($this->_getResource(), CURLOPT_POST, true);
Expand Down

0 comments on commit 64c6d1a

Please sign in to comment.