forked from Blendman974/faceclaw
HTTP requests identify Faceclaw in their user-agent string
This commit is contained in:
1 parent
c27dcacfee
commit
8cdee2a701
14 files changed
+115
-9
No files matched your search
@@ -18,6 +18,7 @@ import {
|
||||
extractEvenHubFontAsset,
|
||||
isEvenHubFontAsset,
|
||||
} from "./firmware-fonts";
|
||||
import { fetchWithUserAgent } from "../util/http";
|
||||
|
||||
declare const com: any;
|
||||
|
||||
@@ -157,7 +158,7 @@ async function downloadAndVerifyBase(report: (progress: FirmwareProgress) => voi
|
||||
async function downloadFirmware(): Promise<ArrayBuffer> {
|
||||
let response: Response;
|
||||
try {
|
||||
response = await fetch(FIRMWARE_URL);
|
||||
response = await fetchWithUserAgent(FIRMWARE_URL);
|
||||
} catch (error) {
|
||||
throw new FirmwareBuildError(`Could not reach Even's firmware CDN: ${(error as Error)?.message ?? error}`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user