Permalink
Browse files

Fixed error when server returns 417 (Bad Expectation) - see http://ww…

  • Loading branch information...
1 parent 3ac8b77 commit cc7e0d5020eed1d25c4e8d145c33117c5608d7e5 @jbroadway committed Oct 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ActiveResource.php
View
2 ActiveResource.php
@@ -455,7 +455,7 @@ function _fetch ($url, $method, $params) {
}
if ($this->request_format == 'xml') {
- curl_setopt ($ch, CURLOPT_HTTPHEADER, array ("Content-Type: text/xml", "Length: " . strlen ($params)));
+ curl_setopt ($ch, CURLOPT_HTTPHEADER, array ("Expect:", "Content-Type: text/xml", "Length: " . strlen ($params)));
}
switch ($method) {
case 'POST':

0 comments on commit cc7e0d5

Please sign in to comment.