From 9361c07bb319ab6d66ba62448126fe8d2fcddf75 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 27 Oct 2012 10:40:31 +0200 Subject: [PATCH] mrb reported 417 Expectation failed errors due to now commented line --- lib/oauthclient.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/oauthclient.php b/lib/oauthclient.php index bc7587183b..e14f673392 100644 --- a/lib/oauthclient.php +++ b/lib/oauthclient.php @@ -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);