Skip to content

Commit

Permalink
Merge pull request Vonage#206 from Nexmo/fixing_encoding
Browse files Browse the repository at this point in the history
changing payload encoding to utf8
  • Loading branch information
slorello89 authored Jun 17, 2020
2 parents 59ff4b6 + 14de643 commit 27ec412
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Nexmo.Api/Nexmo.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<Version>4.4.0</Version>
<Version>4.4.1</Version>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<PackageLicenseExpression></PackageLicenseExpression>
<PackageProjectUrl>https://github.com/Nexmo/nexmo-dotnet</PackageProjectUrl>
Expand Down
4 changes: 2 additions & 2 deletions Nexmo.Api/Nexmo.Api.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>Nexmo.Csharp.Client</id>
<version>4.4.0</version>
<version>4.4.1</version>
<title>Nexmo API Client</title>
<authors>Nexmo</authors>
<owners>Nexmo</owners>
Expand All @@ -12,7 +12,7 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Official C#/.NET wrapper for the Nexmo API</description>
<releaseNotes>
https://github.com/Nexmo/nexmo-dotnet/releases/tag/v4.4.0
https://github.com/Nexmo/nexmo-dotnet/releases/tag/v4.4.1
</releaseNotes>
<copyright>© Nexmo 2020</copyright>
<tags>SMS voice telephony phone nexmo</tags>
Expand Down
6 changes: 3 additions & 3 deletions Nexmo.Api/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Nexmo")]
[assembly: AssemblyProduct("Nexmo.Api")]
[assembly: AssemblyCopyright(Nexmo 2019")]
[assembly: AssemblyCopyright(Vonage 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -34,5 +34,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.4.0.0")]
[assembly: AssemblyFileVersion("4.4.0.0")]
[assembly: AssemblyVersion("4.4.1.0")]
[assembly: AssemblyFileVersion("4.4.1.0")]
2 changes: 1 addition & 1 deletion Nexmo.Api/Request/VersionedApiRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public static NexmoResponse DoRequest(string method, Uri uri, object payload, Cr
Jwt.CreateToken(appId, appKeyPath));
}

var data = Encoding.ASCII.GetBytes(JsonConvert.SerializeObject(payload,
var data = Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(payload,
Formatting.None, new JsonSerializerSettings { DefaultValueHandling = DefaultValueHandling.Ignore }));
req.Content = new ByteArrayContent(data);
req.Content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
Expand Down

0 comments on commit 27ec412

Please sign in to comment.