Skip to content

Commit 642abba

Browse files
MakaopiorMazov Sergey
and
Mazov Sergey
authored
Added InternetMeasurement bot User-Agent (#58)
* Added CensysInspect bot User-Agent * Added InternetMeasurement bot User-Agent --------- Co-authored-by: Mazov Sergey <[email protected]>
1 parent 29fb7ae commit 642abba

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/MyCSharp.HttpUserAgentParser/HttpUserAgentStatics.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ public static readonly (string Key, string Value)[] Robots =
271271
( "seoscanners.net", "SEO Scanners"),
272272
( "Sistrix", "Sistrix" ),
273273
( "WhatsApp", "WhatsApp" ),
274-
( "CensysInspect", "CensysInspect" )
274+
( "CensysInspect", "CensysInspect" ),
275+
( "InternetMeasurement", "InternetMeasurement" )
275276
];
276277

277278
/// <summary>

tests/MyCSharp.HttpUserAgentParser.UnitTests/HttpUserAgentParserTests.cs

+1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ public void BrowserTests(string ua, string name, string version, string platform
147147
[InlineData("Mozilla/5.0 (compatible; archive.org_bot +http://archive.org/details/archive.org_bot)", "archive.org")]
148148
[InlineData("Mozilla/5.0 (compatible; MojeekBot/0.11; +mojeek.com/bot.html)", "MojeekBot")]
149149
[InlineData("Mozilla/5.0 (compatible; CensysInspect/1.1; +https://about.censys.io/)", "CensysInspect")]
150+
[InlineData("Mozilla/5.0 (compatible; InternetMeasurement/1.0; +https://internet-measurement.com/)", "InternetMeasurement")]
150151
public void BotTests(string ua, string name)
151152
{
152153
HttpUserAgentInformation uaInfo = HttpUserAgentInformation.Parse(ua);

0 commit comments

Comments
 (0)