Skip to content

Swagger UI with GET Request, not setting content-type on try it out #657

@thedude459

Description

@thedude459

Describe the bug
Swagger UI populates accept header but not the content-type:
curl -X GET "http://localhost:8080/tasks?jobId=A4990A6DE8D52489E05313108A0A7678&tradeDate=2020-05-06" -H "accept: application/json"

Content-type is populated on the response header with the error message:
connection: keep-alive
content-type: application/json
date: Fri, 08 May 2020 12:32:29 GMT
keep-alive: timeout=60
transfer-encoding: chunked

"timestamp": "2020-05-08T12:32:29.081+0000",
"status": 415,
"error": "Unsupported Media Type",
"message": "Content type '' not supported",

Controller:
@GetMapping(value = "/tasks", produces = "application/json", consumes = "application/json")

POM:

org.springdoc
springdoc-openapi-ui
1.3.8

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