Skip to content

Commit

Permalink
Fixes #7 notice problem
Browse files Browse the repository at this point in the history
  • Loading branch information
boogie committed Feb 12, 2016
1 parent 5a374da commit 0928feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Escher.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public function getHeaderList()

public function getCurrentUrl()
{
$scheme = $this->serverVars["HTTPS"] === "on" ? 'https' : 'http';
$scheme = (array_key_exists('HTTPS', $this->serverVars) && $this->serverVars["HTTPS"] == "on") ? 'https' : 'http';
$host = $this->getServerHost();
$res = "$scheme://$host" . $this->serverVars["REQUEST_URI"];
return $res;
Expand Down

0 comments on commit 0928feb

Please sign in to comment.