From: Mikael Nordfeldth Date: Sat, 27 Oct 2012 08:40:31 +0000 (+0200) Subject: mrb reported 417 Expectation failed errors due to now commented line X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9d73f6444a29dc59d2b5c4aef31be128a0bc4ffe;p=quix0rs-gnu-social.git mrb reported 417 Expectation failed errors due to now commented line --- 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);