cnnlabs / cnn-hapi

CNN Hapi
10 stars 4 forks source link

Getting this now when I run a clean project #13

Closed MDrooker closed 8 years ago

MDrooker commented 8 years ago

Debug: internal, implementation, error TypeError: Uncaught error: request.response.header is not a function at setCacheControlHeaders (/Users/matthewjon/Development/Projects/watercooler-api/node_modules/cnn-hapi/main.js:63:26)

request.response.header('Surrogate-Control', surrogateControl);

MDrooker commented 8 years ago

Its because you need to check for isBoom...this fails if a 404 is being served

adslaton commented 8 years ago

0.5.1 released