Skip to content

Bind JSON and Query? #811

@drpebcak

Description

@drpebcak

Hey, I'm trying to bind both json data AND query params in the same request.. when I use c.Bind and c.BindJSON together, gin tries to return a 400.

c.Bind(&example)
c.BindJson(&example)

Is there a way to avoid that 400 message?

[GIN-debug] [WARNING] Headers were already written. Wanted to override status code 400 with 200

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions