Update Accept header for UA

This commit is contained in:
Kovid Goyal 2022-07-15 22:37:29 +05:30
parent 5b61049860
commit a0e17d079d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -60,9 +60,10 @@ def all_chrome_versions(limit=10):
def accept_header_for_ua(ua):
# See https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation/List_of_default_Accept_values
if 'Firefox/' in ua:
return 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
return 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
return 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8'
return 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8'
def common_english_word_ua():