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 committed by Evan Prodromou
parent ae3eaee6cd
commit 9361c07bb3

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);