Skip to content

RedirectHandler doesn't copy content for PATCH requests #58270

Open
@whoaskedfrfr

Description

@whoaskedfrfr

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

RedirectHandler doesn't copy the body for patch requests which causes validation errors.

Expected Behavior

Copy the body for any request that may contain a body.

Steps To Reproduce

Use any version of Microsoft.AspNetCore.Mvc.Testing that's above or equal to 7.0.0 (the problem doesn't exist in earlier version).

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesfeature-mvc-testingMVC testing package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions