Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Sep 2, 2021

Backport of #35976 to release/6.0

/cc @BrennanConroy

private static partial void RequiredParameterNotProvided(ILogger logger, string parameterType, string parameterName, string source);

public static void UnexpectedContentType(HttpContext httpContext, string? contentType)
=> UnexpectedContentType(GetLogger(httpContext), contentType ?? "(none)");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this was already merged into main but we should respect ThrowOnBadRequest here. Make sure we set the 415 status code on the BadHttpRequestException. All the others use 400 right now.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, updated

@BrennanConroy
Copy link
Member

@dotnet/aspnet-build please merge!

@sebastienros sebastienros merged commit f7f5fcb into release/6.0 Sep 3, 2021
@sebastienros sebastienros deleted the backport/pr-35976-to-release/6.0 branch September 3, 2021 19:19
@ghost ghost added this to the 6.0-rc2 milestone Sep 3, 2021
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants