Skip to content

Commit 435b998

Browse files
committed
Fix ASP0015: Suggest using IHeaderDictionary properties
1 parent fdc9f82 commit 435b998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public virtual async Task<IActionResult> PostAsync([FromBody] TResource resource
214214

215215
if (newResource == null)
216216
{
217-
HttpContext.Response.Headers["Location"] = locationUrl;
217+
HttpContext.Response.Headers.Location = locationUrl;
218218
return NoContent();
219219
}
220220

0 commit comments

Comments
 (0)