Skip to content

Commit

Permalink
OMNI-1167 Revert #155
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-ruth committed Jun 12, 2016
1 parent 345d27d commit 407a278
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Bigcommerce/Api/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ class Connection
*/
public function __construct()
{
if (!defined('STDIN')) {
define('STDIN', fopen('php://stdin', 'r'));
}
$this->curl = curl_init();
curl_setopt($this->curl, CURLOPT_HEADERFUNCTION, array($this, 'parseHeader'));
curl_setopt($this->curl, CURLOPT_WRITEFUNCTION, array($this, 'parseBody'));
Expand Down Expand Up @@ -445,6 +448,7 @@ public function put($url, $body)
curl_exec($this->curl);

fclose($handle);
curl_setopt($this->curl, CURLOPT_INFILE, STDIN);

return $this->handleResponse();
}
Expand Down

0 comments on commit 407a278

Please sign in to comment.