Version 3.4.5
This commit is contained in:
1 parent
fb6b5baabc
commit
e4478369d8
1360 files changed
+228921
-179445
No files matched your search
@@ -26,7 +26,7 @@ class TwitterOAuth {
|
||||
/* Contains the last API call */
|
||||
public $last_api_call;
|
||||
/* Set up the API root URL */
|
||||
public $host = "https://api.twitter.com/1/";
|
||||
public $host = "https://api.twitter.com/1.1/";
|
||||
/* Set timeout default */
|
||||
public $timeout = 30;
|
||||
/* Set connect timeout */
|
||||
@@ -259,7 +259,7 @@ class TwitterOAuth {
|
||||
$path = "/";
|
||||
}
|
||||
|
||||
$header = "$method {$path} HTTP/1.0\r\n";
|
||||
$header = "$method {$path} HTTP/1.1\r\n";
|
||||
$header .= "User-Agent: Twitter\r\n";
|
||||
$header .= "Host: " . str_replace( array( 'http://', 'https://', 'ssl://' ), '', $host ) . "\r\n";
|
||||
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
|
||||
|
||||
Reference in new issue
Block a user