Skip to content

Commit

Permalink
remove the charset
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Aug 21, 2021
1 parent 409b4cb commit 446b15c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DragonFruit.Common.Data/Utils/SerializerUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

using System.IO;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using DragonFruit.Common.Data.Serializers;

Expand All @@ -16,7 +17,7 @@ public static HttpContent ProcessStream(ISerializer serializer, Stream stream, E
var content = new StreamContent(stream);

content.Headers.ContentLength = stream.Length;
content.Headers.Add("Content-Type", $"{serializer.ContentType}; charset={encoding.WebName}");
content.Headers.ContentType = new MediaTypeHeaderValue(serializer.ContentType);

return content;
}
Expand Down

0 comments on commit 446b15c

Please sign in to comment.