Minimal API default content-type for bad request is application/octect-stream , chrome returns ERR_INVALID_RESPONSE #1923
Labels
bug
This issue is a bug.
closed-for-staleness
module/lambda-client-lib
needs-reproduction
This issue needs reproduction.
p2
This is a standard priority issue
response-requested
Waiting on additional info and feedback. Will move to close soon in 7 days.
Describe the bug
When using the minimal api extension method
builder.Services.AddAWSLambdaHosting(LambdaEventSource.ApplicationLoadBalancer)
the response from our lambda when returning a bad request return (NotFound(), BadRequest(), Unauthorized()) has the content-type application/octect-stream which should be application/json.
This creates a ERR_INVALID_RESPONSE on chrome
Regression Issue
Expected Behavior
The content type returned should be application/json
Current Behavior
The content type returned is application/octect-stream
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
Amazon.Lambda.AspNetCoreServer.Hosting1.7.3
Targeted .NET Platform
.NET Core 8
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered: