Set a custom User-Agent for queries made by CVAT and CVAT SDK (#5705)
This lets us: * Download images from hosts that block generic user agents (notably, Wikimedia sites). * Easily distinguish queries to `app.cvat.ai` made by CVAT SDK (for analytics). Also as a consequence of the implementation, CVAT can now reuse the connection when downloading multiple images from the same host. I can't really think of any benefits from using the custom user agent for types of requests that I didn't mention (i.e. hooks, OPA, nuclio), but for consistency I updated them all.
Showing
cvat/utils/__init__.py
0 → 100644
cvat/utils/http.py
0 → 100644
想要评论请 注册 或 登录