You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
334 B
16 lines
334 B
4 years ago
|
namespace NzbDrone.Common.Http
|
||
|
{
|
||
|
public static class UserAgentParser
|
||
|
{
|
||
|
public static string SimplifyUserAgent(string userAgent)
|
||
|
{
|
||
|
if (userAgent == null || userAgent.StartsWith("Mozilla/5.0"))
|
||
|
{
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
return userAgent;
|
||
|
}
|
||
|
}
|
||
|
}
|