diff options
| author | root | 2014-11-12 13:14:16 +0100 |
|---|---|---|
| committer | root | 2014-11-12 13:14:16 +0100 |
| commit | 20c3d251289a7eb0907946a573ca23c09d11dd0f (patch) | |
| tree | c51000b45405b05afe5cc4a1b3855953fb7feed9 /index.php | |
| parent | c93803e324f69f50b3971e61037e53952dafefe3 (diff) | |
| download | httpheader-unstable.tar.gz | |
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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> |
