Skip to content

Commit

Permalink
feedback: onnodige headers verwijderen
Browse files Browse the repository at this point in the history
  • Loading branch information
felixcicatt committed Nov 28, 2024
1 parent 69e872d commit 34cb0fb
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ public static void Map(IEndpointRouteBuilder builder) => builder.MapPut(
using var content = new StreamContent(request.Body);
content.Headers.Add("Content-Type", request.Headers.ContentType.AsEnumerable());
content.Headers.ContentLength = request.Headers.ContentLength;
content.Headers.Add("Content-Disposition", request.Headers.ContentDisposition.AsEnumerable());
content.Headers.Add("Content-Encoding", request.Headers.ContentEncoding.AsEnumerable());

using var requestMessage = new HttpRequestMessage(HttpMethod.Put, request.Path);
requestMessage.Content = content;
Expand Down

0 comments on commit 34cb0fb

Please sign in to comment.