Spaces:
Running
Running
Download server/outboundUserAgent.ts from Felladrin/MiniSearch: direct link, hf CLI and curl.
- Browser
- Download file 496 Bytes
-
https://huggingface.co/spaces/Felladrin/MiniSearch/resolve/main/server/outboundUserAgent.ts
- Command line
-
hf download hf://spaces/Felladrin/MiniSearch/server/outboundUserAgent.ts
-
curl -L -o outboundUserAgent.ts https://huggingface.co/spaces/Felladrin/MiniSearch/resolve/main/server/outboundUserAgent.ts
496 Bytes
| 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})`; | |