Comparing version 2.0.0-alpha.6 to 2.0.0-alpha.7
@@ -5,2 +5,3 @@ | ||
* fix: subdomains should be [] if the host is an ip (#808) | ||
* don't pre-bound onerror [breaking change] (#800) | ||
@@ -15,5 +16,10 @@ * fix `ctx.flushHeaders()` to use `res.flushHeaders()` instead of `res.writeHead()` (#795) | ||
2.0.0-alpha.6 / 2016-08-29 | ||
================== | ||
2.0.0-alpha.7 / 2016-09-07 | ||
================== | ||
* fix: subdomains should be [] if the host is an ip (#808) | ||
2.0.0-alpha.6 / 2016-08-29 | ||
================== | ||
* don't pre-bound onerror [breaking change] | ||
@@ -20,0 +26,0 @@ |
@@ -8,2 +8,3 @@ | ||
const net = require('net'); | ||
const contentType = require('content-type'); | ||
@@ -408,3 +409,5 @@ const stringify = require('url').format; | ||
const offset = this.app.subdomainOffset; | ||
return (this.host || '') | ||
const hostname = this.hostname; | ||
if (net.isIP(hostname)) return []; | ||
return hostname | ||
.split('.') | ||
@@ -411,0 +414,0 @@ .reverse() |
{ | ||
"name": "koa", | ||
"version": "2.0.0-alpha.6", | ||
"version": "2.0.0-alpha.7", | ||
"description": "Koa web app framework", | ||
@@ -5,0 +5,0 @@ "main": "lib/application.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49600
1356
4