Skip to content

Commit 4f016ab

Browse files
committed
add content type to response
1 parent ae68665 commit 4f016ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

JsonApiDotNetCore/Services/JsonApiService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ private static void SendResponse(HttpContext context, ObjectResult result)
138138
{
139139
context.Response.StatusCode = result.StatusCode ?? 500;
140140
context.Response.WriteAsync(result.Value.ToString());
141+
context.Response.ContentType = "application/vnd.api+json";
141142
context.Response.Body.Flush();
142143
}
143144

0 commit comments

Comments
 (0)