Comparing version 0.2.1 to 0.2.2
@@ -265,4 +265,4 @@ var fs = require('fs'), | ||
this.params['HTTP_VERSION'] = req.httpVersionMajor + '.' + req.httpVersionMinor; | ||
this.params['STATUS'] = res._header ? res.statusCode : null; | ||
this.params['CONTENT_LENGTH'] = (res._headers || {})['content-length'] || '-'; | ||
this.params['STATUS'] = res.statusCode ? res.statusCode : null; | ||
this.params['CONTENT_LENGTH'] = (res.getHeaders() || {})['content-length'] || '-'; | ||
this.params['BYTES_SENT'] = res.socket ? res.socket.bytesRead : 0; | ||
@@ -269,0 +269,0 @@ this.params['HEADERS'] = req.headers; |
{ | ||
"name": "yog-log", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "yog logger", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
75175