Skip to content

Commit

Permalink
fix: change curl agent output from "Shell" to "cURL" (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Nov 6, 2023
1 parent 4e5b289 commit 2bb9ee5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const PLATFORMS = {
alamofire: 'Swift', // https://github.com/Alamofire/Alamofire
axios: 'Node',
csharp: 'C#',
curl: 'Shell',
curl: 'cURL',
dart: 'Dart',
faraday: 'Ruby', // https://github.com/lostisland/faraday
insomnia: 'Insomnia', // https://insomnia.rest/
Expand Down
2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ describe('ua-platformer', () => {
C: ['UnityPlayer/2021.3.1f1 (UnityWebRequest/1.0, libcurl/7.80.0-DEV)'],
'C++': ['Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpRequest.5)'],
'C#': ['RestSharp/108.0.3.0'],
cURL: ['curl/7.85.0'],
Dart: ['Dart/2.18 (dart:io)'],
Erlang: ['hackney/1.18.1'],
Go: [
Expand Down Expand Up @@ -107,7 +108,6 @@ describe('ua-platformer', () => {
'Typhoeus - https://github.com/typhoeus/typhoeus',
'rest-client/2.0.2 (linux-musl x86_64) ruby/2.7.4p191',
],
Shell: ['curl/7.85.0'],
Swift: ['Impact-dev/0.1 (com.pitcher.Impact.dev; build:102; iOS 16.1.0) Alamofire/5.4.3'],
}),
)('%s', (platform, useragents) => {
Expand Down

0 comments on commit 2bb9ee5

Please sign in to comment.