cf-nodejs-logging-support
Advanced tools
Comparing version 7.3.0-beta.0 to 7.3.0-beta.1
@@ -30,6 +30,12 @@ { | ||
"name": "request", | ||
"source": { | ||
"type": "req-object", | ||
"fieldName": "originalUrl" | ||
}, | ||
"source": [ | ||
{ | ||
"type": "req-object", | ||
"fieldName": "originalUrl" | ||
}, | ||
{ | ||
"type": "req-object", | ||
"fieldName": "url" | ||
} | ||
], | ||
"output": [ | ||
@@ -36,0 +42,0 @@ "req-log" |
@@ -5,3 +5,3 @@ "use strict"; | ||
getReqHeaderField(req, fieldName) { | ||
return req.raw.headers[fieldName]; | ||
return req.headers[fieldName] ? req.headers[fieldName] : ""; | ||
} | ||
@@ -33,3 +33,4 @@ getReqField(req, fieldName) { | ||
getResHeaderField(res, fieldName) { | ||
return res.raw.getHeader ? res.raw.getHeader(fieldName) : ""; | ||
let value = res.getHeader(fieldName); | ||
return value ? value : ""; | ||
} | ||
@@ -36,0 +37,0 @@ getResField(res, fieldName) { |
{ | ||
"name": "cf-nodejs-logging-support", | ||
"version": "7.3.0-beta.0", | ||
"version": "7.3.0-beta.1", | ||
"description": "Logging tool for Cloud Foundry", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
212724
3179