summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files 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: "<u><?php echo strtolower(htmlentities($header_info[2])); ?></u>"</pre></h
<!-- Multiple Radios (inline) -->
<div class="form-group">
- <label class="col-md-4 control-label" for="method">Method</label>
+ <label class="col-md-4 control-label" for="method">Request method</label>
<div class="col-md-4">
+ <div class="text-left">
<label class="radio-inline" for="method-0">
<input name="method" id="method-0" value="GET" checked="checked" type="radio">
GET
@@ -217,6 +218,7 @@ Host: "<u><?php echo strtolower(htmlentities($header_info[2])); ?></u>"</pre></h
<input name="method" id="method-2" value="HEAD" type="radio">
HEAD
</label>
+ </div>
</div>
</div>