Skip to content

Commit

Permalink
Fix response podium init. Closes #3586
Browse files Browse the repository at this point in the history
  • Loading branch information
hueniverse committed Sep 25, 2017
1 parent d1cb638 commit 5985524
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/response.js
Expand Up @@ -11,12 +11,14 @@ const Streams = require('./streams');

// Declare internals

const internals = {};
const internals = {
emitter: new Podium(['finish', { name: 'peek', spread: true }])
};


exports = module.exports = internals.Response = function (source, request, options) {

Podium.call(this, ['finish', { name: 'peek', spread: true }]);
Podium.decorate(this, internals.emitter);

options = options || {};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"name": "hapi",
"description": "HTTP Server framework",
"homepage": "http://hapijs.com",
"version": "16.6.1",
"version": "16.6.2",
"repository": {
"type": "git",
"url": "git://github.com/hapijs/hapi"
Expand Down

0 comments on commit 5985524

Please sign in to comment.