Browse Source

Merge pull request #4487 from spiliot/3.0-req-https

Request now understands HTTPS if variable is 'on' instead of 1
Mark Story 11 years ago
parent
commit
610f3a0f92
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Network/Request.php

+ 1 - 1
src/Network/Request.php

@@ -126,7 +126,7 @@ class Request implements \ArrayAccess {
 		'delete' => array('env' => 'REQUEST_METHOD', 'value' => 'DELETE'),
 		'head' => array('env' => 'REQUEST_METHOD', 'value' => 'HEAD'),
 		'options' => array('env' => 'REQUEST_METHOD', 'value' => 'OPTIONS'),
-		'ssl' => array('env' => 'HTTPS', 'value' => 1),
+		'ssl' => array('env' => 'HTTPS', 'options' => [1, 'on']),
 		'ajax' => array('env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest'),
 		'flash' => array('env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/'),
 		'requested' => array('param' => 'requested', 'value' => 1)