Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
mickelindahl committed Oct 4, 2016
1 parent 07ad5b7 commit 5fc3737
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ exports.register = function ( server, options, next ) {
let lookup={};
options.forEach((val)=>{

lookup[val.status_code]={}

for (let key in val){

lookup[val.status_code][key]=val[key]
Expand All @@ -20,6 +22,9 @@ exports.register = function ( server, options, next ) {

})


console.log(lookup)

// onPreResponse intercepts ALL errors
server.ext( 'onPreResponse', ( request, reply ) => {

Expand Down

0 comments on commit 5fc3737

Please sign in to comment.