From 174412018be90b23f1faf30467ac629b70b87d7a Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Fri, 26 Dec 2008 00:17:16 -0500 Subject: Twitter-bridge: fix for Twitter's new strict policy of rejecting HTTP POSTs with invalid "expect" headers (not the same patch as in trunk) darcs-hash:20081226051716-7b5ce-82040320785bab9438aa11cf5efa63fa4cba10ae.gz --- lib/twitter.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/twitter.php') diff --git a/lib/twitter.php b/lib/twitter.php index 5c9ef5d6f..7f75a1afd 100644 --- a/lib/twitter.php +++ b/lib/twitter.php @@ -29,7 +29,10 @@ function get_twitter_data($uri, $screen_name, $password) { CURLOPT_FOLLOWLOCATION => true, // CURLOPT_USERAGENT => "identi.ca", CURLOPT_CONNECTTIMEOUT => 120, - CURLOPT_TIMEOUT => 120 + CURLOPT_TIMEOUT => 120, + + # Twitter is strict about accepting invalid "Expect" headers + CURLOPT_HTTPHEADER => array('Expect:') ); -- cgit v1.2.3-54-g00ecf