mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 03:01:31 +00:00
[MAINT] Tweak User-Agent to refer to Octokit.net, not just Octokit (#2447)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
@@ -771,6 +771,7 @@ namespace Octokit.Tests.Http
|
||||
|
||||
Assert.Equal(new Uri("https://github.com/"), connection.BaseAddress);
|
||||
Assert.StartsWith("OctokitTests (", connection.UserAgent);
|
||||
Assert.Contains("Octokit.net", connection.UserAgent);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -768,7 +768,7 @@ namespace Octokit
|
||||
|
||||
static string FormatUserAgent(ProductHeaderValue productInformation)
|
||||
{
|
||||
return string.Format(CultureInfo.InvariantCulture, "{0} ({1}; {2}; Octokit {3})",
|
||||
return string.Format(CultureInfo.InvariantCulture, "{0} ({1}; {2}; Octokit.net {3})",
|
||||
productInformation,
|
||||
GetPlatformInformation(),
|
||||
GetCultureInformation(),
|
||||
|
||||
Reference in New Issue
Block a user