mrb reported 417 Expectation failed errors due to now commented line

This commit is contained in:
Mikael Nordfeldth 2012-10-27 10:40:31 +02:00
parent c809dd24c5
commit 9d73f6444a

View File

@ -242,8 +242,9 @@ class OAuthClient
'ssl_verify_host' => false
));
// Twitter is strict about accepting invalid "Expect" headers
$request->setHeader('Expect', '');
// Twitter was strict about accepting invalid "Expect" headers
// between 2008ish and October 2012. Caused "417 Expectation failed"
//$request->setHeader('Expect', '');
if (isset($params)) {
$request->setMethod(HTTP_Request2::METHOD_POST);