Comparing version 0.1.1 to 0.1.2
@@ -259,3 +259,3 @@ var fs = require('fs'), | ||
this.params['CONTENT_LENGTH'] = (res._headers || {})['content-length'] || '-'; | ||
this.params['HEADERS'] = req.headers; | ||
this.params['pid'] = process.pid; | ||
@@ -617,2 +617,6 @@ }, | ||
} | ||
name = name.toLowerCase(); | ||
if (this.params.HEADERS && this.params.HEADERS.hasOwnProperty(name) && this.params.HEADERS[name]) { | ||
return this.params.HEADERS[name]; | ||
} | ||
return '-'; | ||
@@ -619,0 +623,0 @@ }, |
{ | ||
"name": "yog-log", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "yog logger", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
72839
1289