forked from MapComplete/MapComplete
Fix: fix #1684; add 'openid' to auth-tokens (will be needed in the future for geovisio integration)
This commit is contained in:
parent
8b018b7ed2
commit
0a82dd0edf
2 changed files with 40 additions and 20 deletions
|
@ -972,7 +972,9 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
|
|||
*/
|
||||
public static downloadAdvanced(
|
||||
url: string,
|
||||
headers?: any
|
||||
headers?: any,
|
||||
method: "POST" | "GET" | "PUT" | "UPDATE" | "DELETE" | "OPTIONS" = "GET",
|
||||
content?: string
|
||||
): Promise<
|
||||
| { content: string }
|
||||
| { redirect: string }
|
||||
|
@ -999,14 +1001,13 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
|
|||
})
|
||||
}
|
||||
}
|
||||
xhr.open("GET", url)
|
||||
xhr.open(method, url)
|
||||
if (headers !== undefined) {
|
||||
for (const key in headers) {
|
||||
xhr.setRequestHeader(key, headers[key])
|
||||
}
|
||||
}
|
||||
|
||||
xhr.send()
|
||||
xhr.send(content)
|
||||
xhr.onerror = reject
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue