aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_dispatch/http')
-rw-r--r--actionpack/lib/action_dispatch/http/url.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/url.rb b/actionpack/lib/action_dispatch/http/url.rb
index ab5399c8ea..e9d4cd6c34 100644
--- a/actionpack/lib/action_dispatch/http/url.rb
+++ b/actionpack/lib/action_dispatch/http/url.rb
@@ -100,7 +100,7 @@ module ActionDispatch
tld_length = options[:tld_length] || @@tld_length
host = ""
- unless options[:subdomain] == false
+ unless options[:subdomain] == false || options[:subdomain] == ''
host << (options[:subdomain] || extract_subdomain(options[:host], tld_length)).to_param
host << "."
end