Skip to content

Commit

Permalink
Merge pull request #533 from tom139/feat/add-httpie-user-agent
Browse files Browse the repository at this point in the history
fix: add support for httpie user agent
  • Loading branch information
commenthol authored Jan 11, 2023
2 parents dc85ab2 + dffe7f6 commit 1ef0926
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion regexes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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+)'
Expand Down
6 changes: 6 additions & 0 deletions tests/test_ua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 1ef0926

Please sign in to comment.