From dffe7f6a2272d71468e61a1f7b224246e51516c8 Mon Sep 17 00:00:00 2001 From: Tommaso Panozzo Date: Tue, 6 Dec 2022 12:17:29 +0100 Subject: [PATCH] fix: add support for httpie --- regexes.yaml | 2 +- tests/test_ua.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/regexes.yaml b/regexes.yaml index 9ce784b0..5f1119ac 100644 --- a/regexes.yaml +++ b/regexes.yaml @@ -932,7 +932,7 @@ user_agent_parsers: family_replacement: 'Python Requests' # headless user-agents - - regex: '\b(Windows-Update-Agent|WindowsPowerShell|Microsoft-CryptoAPI|SophosUpdateManager|SophosAgent|Debian APT-HTTP|Ubuntu APT-HTTP|libcurl-agent|libwww-perl|urlgrabber|curl|PycURL|Wget|wget2|aria2|Axel|OpenBSD ftp|lftp|jupdate|insomnia|fetch libfetch|akka-http|got|CloudCockpitBackend|ReactorNetty|axios|Jersey|Vert.x-WebClient|Apache-CXF|Go-CF-client|go-resty|AHC)(?:[ /](\d+)(?:\.(\d+)|)(?:\.(\d+)|)|)' + - regex: '\b(Windows-Update-Agent|WindowsPowerShell|Microsoft-CryptoAPI|SophosUpdateManager|SophosAgent|Debian APT-HTTP|Ubuntu APT-HTTP|libcurl-agent|libwww-perl|urlgrabber|curl|PycURL|Wget|wget2|aria2|Axel|OpenBSD ftp|lftp|jupdate|insomnia|fetch libfetch|akka-http|got|CloudCockpitBackend|ReactorNetty|axios|Jersey|Vert.x-WebClient|Apache-CXF|Go-CF-client|go-resty|AHC|HTTPie)(?:[ /](\d+)(?:\.(\d+)|)(?:\.(\d+)|)|)' # CloudFoundry - regex: '^(cf)\/(\d+)\.(\d+)\.(\S+)' diff --git a/tests/test_ua.yaml b/tests/test_ua.yaml index 01060ec9..eccafee9 100644 --- a/tests/test_ua.yaml +++ b/tests/test_ua.yaml @@ -8657,3 +8657,9 @@ test_cases: major: '2' minor: '7' patch: '6' + + - user_agent_string: 'HTTPie/3.2.1' + family: 'HTTPie' + major: '3' + minor: '2' + patch: '1'