Skip to content

Fixes TypeError for domain() when domain reads as blank.#27

Merged
rodneyrehm merged 1 commit intomedialize:gh-pagesfrom
mutewinter:empty_domain_fix
May 19, 2012
Merged

Fixes TypeError for domain() when domain reads as blank.#27
rodneyrehm merged 1 commit intomedialize:gh-pagesfrom
mutewinter:empty_domain_fix

Conversation

@mutewinter
Copy link
Copy Markdown
Contributor

When calling url.domain() or url.subdomain() on a URI of the form http://test/, a TypeError results. This patch fixes that error.

rodneyrehm added a commit that referenced this pull request May 19, 2012
Fixing TypeError for domain() on dot-less hostnames
@rodneyrehm rodneyrehm merged commit 5e3817d into medialize:gh-pages May 19, 2012
@rodneyrehm
Copy link
Copy Markdown
Member

good catch! I added some tests and released version 1.6.1 :)

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

Successfully merging this pull request may close these issues.

2 participants