glynnbird opened a new pull request #277:
URL: https://github.com/apache/couchdb-nano/pull/277
## Overview
When a user supplied custom headers, they were not used properly by nano, as
specified in issue #273.
## Testing recommendations
Add customer headers when initialising Nano.
```js
const opts = {
url: 'http://localhost:5984',
requestDefaults: {
headers: {
customheader: 'MyCustomHeader'
}
}
};
const db = require('nano')(opts);
```
## GitHub issue number
issue #273
## Checklist
- [x] Code is written and works correctly;
- [x] Changes are covered by tests;
- [x] Documentation reflects the changes;
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]