Browse files

Reset header modifications by curl on PUT requests; unsets Expect header

  • Loading branch information...
1 parent cffc87a commit 1aa61889e6ba140bc00d3ae1065d4d9124950131 @thejohnny thejohnny committed Jun 21, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 class.spreedly.inc
View
5 class.spreedly.inc
@@ -206,6 +206,11 @@ class Spreedly {
curl_setopt($ch, CURLOPT_INFILE, $fh);
curl_setopt($ch, CURLOPT_INFILESIZE, strlen($data));
curl_setopt($ch, CURLOPT_PUT, true);
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array(
+ "Content-Type: text/xml",
+ "Accept: text/xml",
+ "Expect:"
+ ));
break;
default:
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");

0 comments on commit 1aa6188

Please sign in to comment.