aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/http_server.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-05-02 15:24:22 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-05-02 15:24:22 +0100
commit2e0b89b33d4c9944440bba49e6926a51b46d02c3 (patch)
tree2a28075d9b7459b469afb1988572cb61f4221881 /lib/mauve/http_server.rb
parente55096b063720e0be4ca8d774095d2f6dfb7c086 (diff)
parentc697cea61321a8b292b4e353afc9dbff8a552b94 (diff)
merge
Diffstat (limited to 'lib/mauve/http_server.rb')
-rw-r--r--lib/mauve/http_server.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mauve/http_server.rb b/lib/mauve/http_server.rb
index 583e6b5..9250b2e 100644
--- a/lib/mauve/http_server.rb
+++ b/lib/mauve/http_server.rb
@@ -187,7 +187,7 @@ module Mauve
#
# @return [String]
def base_url
- @base_url ||= "http://"+Server.instance.hostname
+ @base_url ||= "http://"+Server.instance.hostname+(self.port == "80" ? "" : ":#{self.port}")
end
# Stop the server