aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis von Glasow <vonglasow@gmail.com>2013-11-06 13:41:03 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-11-06 14:31:05 +0100
commit9496f4ad92fa0741caf707c70168ec1af44ffe94 (patch)
tree3aba36e07515c742c2e207d49046720ceac97bf1
parent8361eeda7c2075f106c5b36bcf2de66c9130cc6e (diff)
downloadRouter-9496f4ad92fa0741caf707c70168ec1af44ffe94.zip
Router-9496f4ad92fa0741caf707c70168ec1af44ffe94.tar.gz
Router-9496f4ad92fa0741caf707c70168ec1af44ffe94.tar.bz2
Use constants everywhere as much as possible.
-rw-r--r--Http.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Http.php b/Http.php
index f1bdca1..f081d6e 100644
--- a/Http.php
+++ b/Http.php
@@ -483,7 +483,7 @@ class Http extends Generic implements \Hoa\Core\Parameter\Parameterizable {
$defaultPort = $self->getDefaultPort($secure);
- if(false === $secure)
+ if(static::UNSECURE === $secure)
return 80 !== $defaultPort ? ':' . $defaultPort : '';
return 443 !== $defaultPort ? ':' . $defaultPort : '';