Skip to content

Commit

Permalink
Truncate Accept-Language code
Browse files Browse the repository at this point in the history
  • Loading branch information
vlvkobal committed Feb 10, 2025
1 parent 6138999 commit c9a5218
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/ja4h.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def http_method(method):

def http_language(lang):
lang = lang.replace('-','').replace(';',',').lower().split(',')[0]
lang = lang[:4]
return f"{lang}{'0'*(4-len(lang))}"

def to_ja4h(x, debug_stream=-1):
Expand Down

0 comments on commit c9a5218

Please sign in to comment.