Comparing version 17.5.2 to 17.5.3
@@ -83,3 +83,12 @@ 'use strict'; | ||
const route = new Route({ method: '_special', path: '/{p*}', handler: internals.handler }, server, { special: true }); | ||
const definition = { | ||
method: '_special', | ||
path: '/{p*}', | ||
handler: internals.handler, | ||
options: { | ||
cors: false | ||
} | ||
}; | ||
const route = new Route(definition, server, { special: true }); | ||
server._core.router.special('options', route); | ||
@@ -86,0 +95,0 @@ }; |
@@ -40,2 +40,3 @@ 'use strict'; | ||
this._states = {}; | ||
this._transmitted = false; // Indicates whether a response has been successful sent | ||
@@ -384,2 +385,6 @@ this.app = (options.app ? Hoek.shallow(options.app) : {}); // Place for application-specific state without conflicts with hapi, should not be used by plugins | ||
if (!this._transmitted) { | ||
this.response = null; | ||
} | ||
this._core.events.emit('response', this); | ||
@@ -386,0 +391,0 @@ this._core.queue.release(); |
@@ -110,6 +110,5 @@ 'use strict'; | ||
if (this.variety === 'plain' && | ||
this.source !== null && | ||
this.source !== '') { | ||
this.source !== null) { | ||
this._contentType = (this.source && typeof this.source === 'string' ? 'text/html' : 'application/json'); | ||
this._contentType = (typeof this.source === 'string' ? 'text/html' : 'application/json'); | ||
} | ||
@@ -116,0 +115,0 @@ } |
@@ -226,3 +226,3 @@ 'use strict'; | ||
this._postCycle = (this._extensions.onPreResponse.nodes ? [this._extensions.onPreResponse] : []); | ||
this._marshalCycle = [Headers.type, Headers.content]; | ||
this._buildMarshalCycle(); | ||
return; | ||
@@ -317,2 +317,7 @@ } | ||
this._buildMarshalCycle(); | ||
} | ||
_buildMarshalCycle() { | ||
this._marshalCycle = [Headers.type]; | ||
@@ -319,0 +324,0 @@ |
@@ -305,2 +305,5 @@ 'use strict'; | ||
} | ||
else { | ||
request._transmitted = true; | ||
} | ||
@@ -307,0 +310,0 @@ team.attend(); |
@@ -5,3 +5,3 @@ { | ||
"homepage": "http://hapijs.com", | ||
"version": "17.5.2", | ||
"version": "17.5.3", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -27,18 +27,4 @@ <img src="https://raw.github.com/hapijs/hapi/master/images/17.png" align="right"/> | ||
<img src="https://user-images.githubusercontent.com/56631/32082980-4fd9b342-ba74-11e7-872a-42b0a414fcb2.png" align="left" /> | ||
[**Lob**](http://bit.ly/lobh-rn) enables you to seamlessly print and mail documents, postcards, checks, and more via an API. They have been an early **hapi** adopters and vocal supporters. If you are looking to take your **hapi** and JS skills to the next level, check out their [career page](http://bit.ly/lobc-rn) for exciting opportunities. | ||
# | ||
<br> | ||
[![Auth0](https://user-images.githubusercontent.com/56631/31878562-5c64483a-b78f-11e7-92da-5a991ebb302d.png)](http://bit.ly/auth0h-rn) | ||
<br> | ||
[![Condé Nast Technology](https://user-images.githubusercontent.com/56631/32398027-e2027480-c0a9-11e7-9077-c5ecca7bc39c.png)](http://bit.ly/cn-rn) | ||
<br> | ||
## Active Supporters | ||
@@ -55,1 +41,3 @@ | ||
- Benjamin Flesch and [StriveWire](https://strivewire.com/) | ||
- [Condé Nast Technology](https://technology.condenast.com/) | ||
- [![Lob](https://user-images.githubusercontent.com/56631/42724877-60d54714-872f-11e8-97e9-07726418f41f.png)](https://lob.com/) |
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
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
4231
169575
42