summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemy <relst@relst.nl>2015-06-03 20:05:18 +0200
committerRemy <relst@relst.nl>2015-06-03 20:05:18 +0200
commit299c30103e00a153d260c23bc06beb3352f94af2 (patch)
tree26279933a88d4c1e970e1b75f45fc4be7c542999
parent15ce045513f91fbe7fa0a79abf243c220148edc9 (diff)
downloadssl-decoder-299c30103e00a153d260c23bc06beb3352f94af2.zip
ssl-decoder-299c30103e00a153d260c23bc06beb3352f94af2.tar.gz
ssl-decoder-299c30103e00a153d260c23bc06beb3352f94af2.tar.bz2
add host header to http header gathering, fix #35
-rw-r--r--functions/connection.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/functions/connection.php b/functions/connection.php
index 5cb98ab..54f7236 100644
--- a/functions/connection.php
+++ b/functions/connection.php
@@ -57,6 +57,7 @@ function server_http_headers($host, $ip, $port){
'http' => array(
'method' => 'GET',
'max_redirects' => 1,
+ 'header' => 'Host: '.$host,
'timeout' => $timeout
)
)