Skip to content

Spring MVC Generated, no Content-Type in Request Header on GETs #1505

@mherb63

Description

@mherb63

Downloaded Swagger Pet Store (Simple) from swagger.io editor and did a mvn jetty:run

When opening up DevTools on Chrome, I don't see the header Content-Type field being set.

This is on the GET /pets{id}

image

adding --header "Content-Type: application/json" to the curl command returns no errors

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions