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

fix: subdomains should be [] if the host is an ip #808

Merged
merged 1 commit into from
Sep 7, 2016

Conversation

we11adam
Copy link
Contributor

@we11adam we11adam commented Sep 7, 2016

Closes: #775

@codecov-io
Copy link

codecov-io commented Sep 7, 2016

Current coverage is 100% (diff: 100%)

Merging #808 into v2.x will not change coverage

@@           v2.x   #808   diff @@
==================================
  Files         4      4          
  Lines       415    418     +3   
  Methods      80     80          
  Messages      0      0          
  Branches    100    100          
==================================
+ Hits        415    418     +3   
  Misses        0      0          
  Partials      0      0          

Powered by Codecov. Last update e4c0a53...95ce04a

@@ -404,7 +405,9 @@ module.exports = {

get subdomains() {
const offset = this.app.subdomainOffset;
return (this.host || '')
const hostname = this.hostname;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v1.x also should use hostname.

@dead-horse dead-horse merged commit 21c0d82 into koajs:v2.x Sep 7, 2016
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.

None yet

3 participants