Skip to content

Commit aee7991

Browse files
committed
test: modernize User-Agent to probe Cloudflare 403 in CI
1 parent 86a55fe commit aee7991

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cppman/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
from cppman import environ
3232

3333
# User-Agent header value to use with all requests
34-
_USER_AGENT = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0"
34+
_USER_AGENT = ("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 "
35+
"(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36")
3536

3637
def update_mandb_path():
3738
"""Add $XDG_CACHE_HOME/cppman/man to $HOME/.manpath"""

0 commit comments

Comments
 (0)