Skip to content

Default content type of response changed in v5.3.11 #27573

Closed
@kedar-joshi

Description

@kedar-joshi

Until Spring Framework v5.3.10, when Accept header is not specified, all API used Content-Type: application/json as default value. This behavior seems to have changed in v5.3.11 where Content-Type: application/xml is being used.

Please refer attached demo.zip.

When following command is used to trigger HTTP request, different responses are returned by API with v5.3.10 and v5.3.11.

curl --request GET --url http://localhost:8080/json

Spring Framework <= v5.3.10

{
  "name": "Neo"
}

Spring Framework v5.3.11

<Json>
  <name>Neo</name>
</Json>

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions