This is an automated email from the ASF dual-hosted git repository.

glynnbird pushed a commit to branch fetch
in repository https://gitbox.apache.org/repos/asf/couchdb-nano.git

commit cb06484ab6130d2c38cb1d91aeaeac42d9f56c64
Author: Glynn Bird <[email protected]>
AuthorDate: Wed Dec 14 12:40:47 2022 +0000

    log headers object instead of map
---
 lib/nano.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/nano.js b/lib/nano.js
index cc4f149..be1cd1f 100644
--- a/lib/nano.js
+++ b/lib/nano.js
@@ -137,7 +137,7 @@ module.exports = exports = function dbScope (cfg) {
     const responseHeaders = Object.assign({
       uri: scrubURL(req.url),
       statusCode
-    }, response.headers)
+    }, Object.fromEntries(response.headers))
     if (!response.status) {
       response.statusText = response.cause.toString()
       log({ err: 'socket', body, headers: responseHeaders })
@@ -239,7 +239,7 @@ module.exports = exports = function dbScope (cfg) {
     const responseHeaders = Object.assign({
       uri: req.url,
       statusCode
-    }, response.headers)
+    }, Object.fromEntries(response.headers))
 
     const error = new Error(message)
     error.scope = 'couch'

Reply via email to