Skip to content

Commit

Permalink
Fixed encoding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Ribeiro committed Jul 5, 2024
1 parent d8809ca commit bfc71d8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="coverlet.collector" Version="6.0.1">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<PackageReference Include="xunit" Version="2.8.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion FluentEmail.MailerSend/FluentEmail.MailerSend.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Authors>Marco Ribeiro</Authors>
<Company />
<PackageId>jcamp.FluentEmail.MailerSend</PackageId>
<PackageVersion>1.1.0</PackageVersion>
<PackageVersion>1.1.1</PackageVersion>
<PackageTags>mailersend;email;razor;liquid;fluent;fluentemail</PackageTags>
<PackageLicenseExpression>MIT OR Apache-2.0</PackageLicenseExpression>
</PropertyGroup>
Expand Down
4 changes: 3 additions & 1 deletion FluentEmail.MailerSend/MailerSendSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using FluentEmail.MailerSend.Utils;
using System.Net.Http.Headers;
using System.Net.Http.Json;
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Text.Json.Serialization;

Expand Down Expand Up @@ -43,6 +44,7 @@ public async Task<SendResponse> SendAsync(IFluentEmail email, CancellationToken?
private static JsonSerializerOptions JsonSerializerOptions => new()
{
PropertyNamingPolicy = new SnakeCaseNamingPolicy(),
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping
};
}

0 comments on commit bfc71d8

Please sign in to comment.