Skip to content

Commit

Permalink
feat: provide user-agent for http requests
Browse files Browse the repository at this point in the history
  • Loading branch information
dedo1911 committed Apr 9, 2024
1 parent 255b991 commit 5833e11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions LogFlake.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ private async Task<bool> Post(string queueName, string jsonString)
{
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Add("User-Agent", "logflake-client-netstandard/1.3.0");
client.BaseAddress = new Uri($"{Server}");
client.Timeout = TimeSpan.FromSeconds(PostTimeoutSeconds);
var json = new StringContent(jsonString, Encoding.UTF8, "application/json");
Expand Down
2 changes: 1 addition & 1 deletion LogFlake.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageId>LogFlake.Client.NetStandard</PackageId>
<Version>1.2.0</Version>
<Version>1.3.0</Version>
<Authors>CloudPhoenix Srl</Authors>
<Company>CloudPhoenix Srl</Company>
<TargetFramework>netstandard2.0</TargetFramework>
Expand Down

0 comments on commit 5833e11

Please sign in to comment.