mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-04 05:46:07 +02:00
Rework WebApi.cs to use HttpClient (#1584)
* Rewrk webapi.cs to use HttpClient * only run code signing when secrets are configured * Workaround to check if secret is present or not * apply it to all azure steps... * dont replace cookie container, reuse managed object * Fix adding MD5 --------- Co-authored-by: Natsumi <cmcooper123@hotmail.com>
This commit is contained in:
@@ -199,9 +199,7 @@
|
||||
uploadFilePUT: true,
|
||||
fileData: avatarImage.value.base64File,
|
||||
fileMIME: 'image/png',
|
||||
headers: {
|
||||
'Content-MD5': avatarImage.value.fileMd5
|
||||
}
|
||||
fileMD5: avatarImage.value.fileMd5
|
||||
});
|
||||
|
||||
if (json.status !== 200) {
|
||||
@@ -252,9 +250,7 @@
|
||||
uploadFilePUT: true,
|
||||
fileData: avatarImage.value.base64SignatureFile,
|
||||
fileMIME: 'application/x-rsync-signature',
|
||||
headers: {
|
||||
'Content-MD5': avatarImage.value.signatureMd5
|
||||
}
|
||||
fileMD5: avatarImage.value.signatureMd5
|
||||
});
|
||||
|
||||
if (json.status !== 200) {
|
||||
|
||||
@@ -192,9 +192,7 @@
|
||||
uploadFilePUT: true,
|
||||
fileData: worldImage.value.base64File,
|
||||
fileMIME: 'image/png',
|
||||
headers: {
|
||||
'Content-MD5': worldImage.value.fileMd5
|
||||
}
|
||||
fileMD5: worldImage.value.fileMd5
|
||||
});
|
||||
|
||||
if (json.status !== 200) {
|
||||
@@ -245,9 +243,7 @@
|
||||
uploadFilePUT: true,
|
||||
fileData: worldImage.value.base64SignatureFile,
|
||||
fileMIME: 'application/x-rsync-signature',
|
||||
headers: {
|
||||
'Content-MD5': worldImage.value.signatureMd5
|
||||
}
|
||||
fileMD5: worldImage.value.signatureMd5
|
||||
});
|
||||
|
||||
if (json.status !== 200) {
|
||||
|
||||
Vendored
+2
-1
@@ -408,10 +408,11 @@ declare global {
|
||||
uploadFilePUT?: boolean;
|
||||
fileData?: string;
|
||||
fileMIME?: string;
|
||||
fileMD5?: string;
|
||||
headers?: Record<string, string>;
|
||||
data?: any;
|
||||
}): Promise<{ status: number; data: string }>;
|
||||
};
|
||||
}
|
||||
|
||||
export { };
|
||||
export {};
|
||||
|
||||
Reference in New Issue
Block a user