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:
Luc ♥
2026-01-17 22:16:31 +01:00
committed by GitHub
parent 2d812d7c05
commit 56bf69f64e
6 changed files with 215 additions and 243 deletions
@@ -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) {
+2 -1
View File
@@ -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 {};