bithavoc / express-winston

express.js middleware for winstonjs
https://www.npmjs.com/package/express-winston
MIT License
796 stars 187 forks source link

_header -> getHeader #210

Closed Gregoirevda closed 5 years ago

Gregoirevda commented 5 years ago

Currently we cannot add the body in the response with responseWhitelist: expressWinston.responseWhitelist.concat('body'), because _header is deprecated and crashed the app. This PR goes from _header property to getHeader function

https://nodejs.org/api/http.html#http_request_getheader_name

bithavoc commented 5 years ago

@Gregoirevda Feel free to add yourself to AUTHORS.

Gregoirevda commented 5 years ago

Thanks @bithavoc. Could you publish on npm please?

bithavoc commented 5 years ago

express-winston@3.2.0 🚀

Gregoirevda commented 5 years ago

Thank you