mirror of
https://github.com/wassname/talk.git
synced 2026-07-29 11:28:24 +08:00
Scraper improvements
- added support for changing the scraper headers
- added a Coral-Talk/${version} user agent header by default
This commit is contained in:
@@ -521,4 +521,11 @@ Sets the logging level for the context logger (from [Bunyan](https://github.com/
|
||||
- `warn`
|
||||
- `info`
|
||||
- `debug`
|
||||
- `trace`
|
||||
- `trace`
|
||||
|
||||
## TALK_SCRAPER_HEADERS
|
||||
|
||||
A JSON string representing the configuration passed to the
|
||||
[fetch](https://www.npmjs.com/package/node-fetch) call for the scraper. It
|
||||
can be used to set an authorization header, or change the user agent. (Default
|
||||
`{}`)
|
||||
Reference in New Issue
Block a user