Version 3.4.5

This commit is contained in:
Neo committed 2025-12-19 00:38:12 -08:00
1 parent fb6b5baabc
commit e4478369d8
1360 files changed
+228921 -179445

No files matched your search

+2 -2
View File
@@ -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";