Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support setting other defaults in the re-usable agent besides cookies.
Since `superagent` 3.8, there has been support for the re-usable agent supporting other defaults besides cookies. For example, it's particularly useful to set default 'Authorization' header before running repeated tests against an authenticated API. I tracked down which version of `superagent` we needed to use as a minimum dependency to this commit: ladjs/superagent@66aed34 This update should be considered a bug fix, as 'supertest' claims to support all of superagent's features, but this feature is documented in superagent, but wasn't working in `supertest'.
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters