We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 380ff58 commit dae7544Copy full SHA for dae7544
codebird-cors-proxy.php
@@ -159,13 +159,13 @@ function http_get_request_body()
159
160
// URLs always start with 1.1 or oauth
161
$version_pos = strpos($url, '/1.1/');
162
-if ($version_pos === -1) {
+if ($version_pos === false) {
163
$version_pos = strpos($url, '/oauth/');
164
}
165
166
$version_pos = strpos($url, '/oauth2/');
167
168
169
header('HTTP/1.1 412 Precondition failed');
170
die('This proxy only supports requests to API version 1.1.');
171
0 commit comments