summaryrefslogtreecommitdiff
path: root/lib/twitter.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/twitter.php')
-rw-r--r--lib/twitter.php5
1 files changed, 4 insertions, 1 deletions
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:')
);