forked from GNUsocial/gnu-social
mrb reported 417 Expectation failed errors due to now commented line
This commit is contained in:
parent
c809dd24c5
commit
9d73f6444a
@ -242,8 +242,9 @@ class OAuthClient
|
|||||||
'ssl_verify_host' => false
|
'ssl_verify_host' => false
|
||||||
));
|
));
|
||||||
|
|
||||||
// Twitter is strict about accepting invalid "Expect" headers
|
// Twitter was strict about accepting invalid "Expect" headers
|
||||||
$request->setHeader('Expect', '');
|
// between 2008ish and October 2012. Caused "417 Expectation failed"
|
||||||
|
//$request->setHeader('Expect', '');
|
||||||
|
|
||||||
if (isset($params)) {
|
if (isset($params)) {
|
||||||
$request->setMethod(HTTP_Request2::METHOD_POST);
|
$request->setMethod(HTTP_Request2::METHOD_POST);
|
||||||
|
Loading…
Reference in New Issue
Block a user