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

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


The following commit(s) were added to refs/heads/main by this push:
     new 4e1ca07  Update nano.js (#270)
4e1ca07 is described below

commit 4e1ca077b8f0a29ba62658ceb010be9c118e2a95
Author: Samuel Bodin <[email protected]>
AuthorDate: Wed Aug 25 11:58:07 2021 +0200

    Update nano.js (#270)
---
 lib/nano.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/nano.js b/lib/nano.js
index 5a4ee28..f065022 100644
--- a/lib/nano.js
+++ b/lib/nano.js
@@ -381,6 +381,7 @@ module.exports = exports = function dbScope (cfg) {
     }
 
     // scrub and log
+    delete req.agent // Agent contains circular refs that does not works well 
with JSON.stringify
     const scrubbedReq = JSON.parse(JSON.stringify(req))
     scrubRequest(scrubbedReq, true)
     log(scrubbedReq)

Reply via email to