Closed glynnbird closed 1 year ago
Fixes a bug in cookie parsing. See Issue #324.
As well as the automated testing, a long-running script to see if a session outlasts the first cookie:
const Nano = require('.') const nano = Nano(process.env.COUCH_URL) const sleep = async (ms) => { return new Promise((resolve, reject) => { setTimeout(resolve, ms) }) } const main = async () => { await nano.auth(process.env.COUCH_USER, process.env.COUCH_PASSWORD) do { const r = await nano.db.list() console.log(new Date().toISOString(), r.length) await sleep(30000) } while (1) } main()
Fixes Issue #324.
A provisional PR that replaces Axios already had code to bring cookie handling in-house, so this has been brought forward here. See https://github.com/apache/couchdb-nano/pull/314
Overview
Fixes a bug in cookie parsing. See Issue #324.
Testing recommendations
As well as the automated testing, a long-running script to see if a session outlasts the first cookie:
GitHub issue number
Fixes Issue #324.
Related Pull Requests
A provisional PR that replaces Axios already had code to bring cookie handling in-house, so this has been brought forward here. See https://github.com/apache/couchdb-nano/pull/314
Checklist