From 44c54f41674eea2a3354296b821f431cbab7e085 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Thu, 30 Aug 2012 12:16:43 -0700 Subject: [PATCH] [issue #39] Fix a bug with `client_req` handling in the default output of the `bunyan` CLI. --- CHANGES.md | 3 ++- bin/bunyan | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 4032a90..4f322e1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,7 +2,8 @@ ## bunyan 0.13.5 (not yet released) -(nothing yet) +- [issue #39] Fix a bug with `client_req` handling in the default output + of the `bunyan` CLI. ## bunyan 0.13.4 diff --git a/bin/bunyan b/bin/bunyan index 978040c..f111be4 100755 --- a/bin/bunyan +++ b/bin/bunyan @@ -662,7 +662,7 @@ function emitRecord(rec, line, opts, stylize) { delete client_req.port; s += format("%s %s HTTP/%s\n%s%s", client_req.method, client_req.url, - req.client_req.httpVersion || "1.1", + client_req.httpVersion || "1.1", hostHeaderLine, Object.keys(headers).map( function (h) { return h + ': ' + headers[h]; }).join('\n'));