Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

current_domain includes port #19

Open
ghazel opened this issue May 3, 2011 · 0 comments
Open

current_domain includes port #19

ghazel opened this issue May 3, 2011 · 0 comments

Comments

@ghazel
Copy link

ghazel commented May 3, 2011

current_domain returns "foo.com:3000" when the port is 3000 (not 80). For reference, request.domain returns "foo.com" so I think current_domain should be just the domain too. For my purposes (the domain attribute of a cookie) the port is not considered part of the domain name, and is not allowed to be included.

The request object also has request.host and request.host_with_port, so perhaps a new variable current_domain_with_port could be added if someone needs it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant