Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .autover/changes/pr2150-reset-stream-position.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"Projects": [
{
"Name": "Amazon.Lambda.AspNetCoreServer",
"Type": "Patch",
"ChangelogMessages": [
"Reset the response body stream position to 0 after converting the ASP.NET Core response body to the Lambda response."
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ protected override APIGatewayHttpApiV2ProxyResponse MarshallResponse(IHttpRespon
}

(response.Body, response.IsBase64Encoded) = Utilities.ConvertAspNetCoreBodyToLambdaBody(responseFeatures.Body, rcEncoding);

responseFeatures.Body.Position = 0L;
}

PostMarshallResponseFeature(responseFeatures, response, lambdaContext);
Expand Down
Loading