Spaces:
Running
Running
File size: 496 Bytes
e4dc8c3 | 1 2 3 4 5 6 7 8 9 10 11 12 | import { repository, version } from "../package.json" with { type: "json" };
const appName = repository.url.slice(repository.url.lastIndexOf("/") + 1);
/**
* How the server identifies itself on its outbound requests to third
* parties: name, version and where to read about it. Some hosts refuse a
* request that carries no User-Agent; upload.wikimedia.org answers it with
* 403.
*/
export const OUTBOUND_USER_AGENT = `Mozilla/5.0 (compatible; ${appName}/${version}; +${repository.url})`;
|