forked from MapComplete/MapComplete
Attempts to scrape more data
This commit is contained in:
parent
5bebcf3825
commit
73db05f545
2 changed files with 54 additions and 14 deletions
|
@ -176,7 +176,9 @@ export default class ScriptUtils {
|
|||
const requestPromise = new Promise((resolve, reject) => {
|
||||
try {
|
||||
headers = headers ?? {}
|
||||
headers.accept ??= "application/json"
|
||||
if(!headers.Accept){
|
||||
headers.accept ??= "application/json"
|
||||
}
|
||||
console.log(" > ScriptUtils.Download(", url, ")")
|
||||
const urlObj = new URL(url)
|
||||
const request = https.get(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue