From 20c3d251289a7eb0907946a573ca23c09d11dd0f Mon Sep 17 00:00:00 2001 From: root Date: Wed, 12 Nov 2014 13:14:16 +0100 Subject: Fixed minor bugs. --- index.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index dbc0f01..272b5c4 100644 --- a/index.php +++ b/index.php @@ -109,7 +109,7 @@ if ( $set ){ $redis->ping(); $redis->select(9); - $key = md5( $url . serialize($customHeader) ); + $key = md5( $url . $method . serialize($customHeader) ); if( $redis->exists( $key ) ){ return unserialize( $redis->get( $key ) ); @@ -152,7 +152,7 @@ if ( $set ){ return $result; } - if ( ! isset($_REQUEST['method']) || $_REQUEST['method'] != "" ){ + if ( ! isset($_REQUEST['method']) || $_REQUEST['method'] == "" ){ $_REQUEST['method'] = 'get'; } else { $_REQUEST['method'] = strtolower($_REQUEST['method']); @@ -203,8 +203,9 @@ Host: ""
- +
+
+
-- cgit v1.2.3