Skip to content

Commit b316e18

Browse files
authored
Removed strtoupper( )
1 parent 9a8023f commit b316e18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Basic.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public static function route_auto()
159159

160160
public static function route($http_method, $path, $class_method)
161161
{
162-
if ($_SERVER['REQUEST_METHOD'] == strtoupper($http_method)) {
162+
if ($_SERVER['REQUEST_METHOD'] == $http_method) {
163163

164164
// Convert '/' and wilcards (:num) and (:any) to RegEx
165165
$pattern = str_ireplace( '/', '\/', $path );
@@ -237,7 +237,7 @@ public static function api_call($http_method, $url, $data=NULL, $username=NULL,
237237

238238
// Set cURL options
239239
curl_setopt($ch, CURLOPT_URL, $url);
240-
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, strtoupper($http_method));
240+
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $http_method);
241241
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_input);
242242
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
243243
curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");

0 commit comments

Comments
 (0)