From f7755964e8703d66cee123a18519a07d49df0ae0 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 17 Nov 2014 01:42:48 +0100 Subject: modified for use case --- header/index.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'header/index.php') diff --git a/header/index.php b/header/index.php index 1a027ab..a41912a 100644 --- a/header/index.php +++ b/header/index.php @@ -38,7 +38,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 ) ); @@ -81,7 +81,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']); @@ -112,13 +112,13 @@ Host: "" -
Check the response headers for websites.
Enter a URL and hit the submit button.