Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Grodzicki authored and Sebastian Grodzicki committed Jan 14, 2012
1 parent 6dcae70 commit 7811421
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/PunyPNG.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ protected function _imageValidation($filepath)
*/
protected function _sendRequest($filepath)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, self::API_URI);
$ch = curl_init(self::API_URI);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
Expand Down

0 comments on commit 7811421

Please sign in to comment.