forked from Kieran/void.cat
Include Authorization header for streaming uploads
This commit is contained in:
parent
2b5fbf3ce3
commit
78c2b560b9
@ -96,7 +96,9 @@ export function FileUpload(props) {
|
||||
if (encrypt) {
|
||||
headers["V-EncryptionParams"] = JSON.stringify(enc.getParams());
|
||||
}
|
||||
|
||||
if (auth) {
|
||||
headers["Authorization"] = `Bearer ${auth}`;
|
||||
}
|
||||
let req = await fetch("/upload", {
|
||||
method: "POST",
|
||||
mode: "cors",
|
||||
|
Loading…
Reference in New Issue
Block a user