From c9a5218529690fd452b7452c999ecec70c627ba0 Mon Sep 17 00:00:00 2001 From: Vladimir Kobal Date: Mon, 10 Feb 2025 15:51:04 +0100 Subject: [PATCH] Truncate Accept-Language code --- python/ja4h.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/ja4h.py b/python/ja4h.py index 962f712..cb768e6 100644 --- a/python/ja4h.py +++ b/python/ja4h.py @@ -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):