Skip to main content

DEFAULT_USER_AGENT

Constant DEFAULT_USER_AGENT 

Source
pub const DEFAULT_USER_AGENT: &str = "Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0 Sphinx/9.1.0";
Expand description

The exact User-Agent Sphinx 9.1.0 sends when user_agent is unset (sphinx/util/requests.py:20-23, an f-string over sphinx.__version__).

Emitted verbatim, Sphinx version and all: servers (notably some CDN and WAF configurations) gate inventory downloads on this exact string, and byte-compatibility with Sphinx is worth more than announcing ourselves here. Revisit at 1.0.