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'));