Skip to content

The usage of NewRequestWithValues(t, "PATCH", url, data) doesn't work in tests #29514

Closed
@yp05327

Description

@yp05327

Description

PATCH request will read data from Form, but NewRequestWithValues will insert data into Body, so these data will not be readed correctly.
As title, the usage of NewRequestWithValues(t, "PATCH", url, data) doesn't work in tests
image

e.g.
image
image
image

Gitea Version

latest

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

build

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions