]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
mrb reported 417 Expectation failed errors due to now commented line
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 27 Oct 2012 08:40:31 +0000 (10:40 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 27 Oct 2012 08:40:31 +0000 (10:40 +0200)
lib/oauthclient.php

index bc7587183b2c4ca8dde3878f4ccd9d5507beeded..e14f6733927ad547a85104df02455cab5072b3bb 100644 (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);