Skip to content

GET请求Content-Type设置为application/json时报错 #172

@shinciao

Description

@shinciao

为某第三方系统接入 bark 推送时发现该系统会对 GET 请求添加 Content-Type: application/json 的请求头。
Bark收到请求后会返回 400 错误 request bind failed: json: unexpected end of JSON input
希望兼容这种有 Content-Type: application/json 的请求头,但无 body 的情况。

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions