Skip to content

Commit

Permalink
add empty Expect header to cURL requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Arnold committed May 27, 2016
1 parent 867aa3c commit b4e50d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/code/local/Litle/CreditCard/Model/Validatehttp.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function save(){
$ch = curl_init();
curl_setopt($ch, CURLOPT_PROXY, $this->getFieldsetDataValue('proxy'));
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: text/xml'));
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: text/xml', "Expect: "));
curl_setopt($ch, CURLOPT_POSTFIELDS, 'Test Connectivity');
curl_setopt($ch, CURLOPT_URL, $this->getFieldsetDataValue('url'));
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, true);
Expand Down
2 changes: 1 addition & 1 deletion app/code/local/Litle/LEcheck/Model/Validatehttp.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function save(){
$ch = curl_init();
curl_setopt($ch, CURLOPT_PROXY, $this->getFieldsetDataValue('proxy'));
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: text/xml'));
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: text/xml','Expect: '));
curl_setopt($ch, CURLOPT_URL, $this->getFieldsetDataValue('url'));
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, true);
curl_setopt($ch,CURLOPT_TIMEOUT,'5');
Expand Down

0 comments on commit b4e50d9

Please sign in to comment.