summaryrefslogtreecommitdiffstats
path: root/functions/connection.php
diff options
context:
space:
mode:
authorRemy <relst@relst.nl>2015-03-30 13:16:48 +0200
committerRemy <relst@relst.nl>2015-03-30 13:16:48 +0200
commit0fdb444fccbe3535d8b766446bb95bc1390f6442 (patch)
tree98ffcfe0112b3baa9a4d7e51969021d156737f2e /functions/connection.php
parentb470f3e3cb6fd341da0b4eed465d6165d98cd441 (diff)
downloadssl-decoder-0fdb444fccbe3535d8b766446bb95bc1390f6442.zip
ssl-decoder-0fdb444fccbe3535d8b766446bb95bc1390f6442.tar.gz
ssl-decoder-0fdb444fccbe3535d8b766446bb95bc1390f6442.tar.bz2
Dont follow HTTP redirects. Fix #14
Diffstat (limited to 'functions/connection.php')
-rw-r--r--functions/connection.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/functions/connection.php b/functions/connection.php
index b1b318e..3cd4fc4 100644
--- a/functions/connection.php
+++ b/functions/connection.php
@@ -36,7 +36,8 @@ function server_http_headers($host, $port){
"allow_self_signed" => true,
"sni_enabled" => true),
'http' => array(
- 'method' => 'GET'
+ 'method' => 'GET',
+ 'max_redirects' => 1
)
)
);