Skip to content

Commit c1eda44

Browse files
committed
chore(RESTConnector): Removed pren if they exist
1 parent bc80525 commit c1eda44

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Scripts/Connection/RESTConnector.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -381,14 +381,11 @@ private void AddHeaders(Dictionary<string, string> headers)
381381
Match m = pattern.Match(osInfo);
382382
string osVersion = m.Value;
383383
string os = osInfo.Replace(osVersion, "").Replace(" ", "");
384-
if(os.Contains("("))
384+
if(os.Contains("()"))
385385
{
386-
os.Replace("(", "");
387-
}
388-
if (os.Contains(")"))
389-
{
390-
os.Replace(")", "");
386+
os = os.Replace("()", "-");
391387
}
388+
392389
headers.Add("User-Agent",
393390
string.Format(
394391
"{0} {1} {2} {3}",

0 commit comments

Comments
 (0)