Skip to content

Commit

Permalink
fix: add missing application/ prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
kwinkel committed May 31, 2023
1 parent b236aac commit d4dd368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
app.Use(async (context, next) =>
{
if (context.Request.Method.Equals("post", StringComparison.OrdinalIgnoreCase) &&
context.Request.Headers.ContentType.Equals("x-www-form-urlencoded"))
context.Request.Headers.ContentType.Equals("application/x-www-form-urlencoded"))
{
context.Request.Headers.ContentType = new StringValues("application/json");
}
Expand Down

0 comments on commit d4dd368

Please sign in to comment.