Skip to content

Support response body negotiation for PUT and POST requests via Accept header [DATAREST-34] #418

Closed
@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened DATAREST-34 and commented

Currently the decision whether to render a response body for PUT and POST requests must not be controlled via a request parameter. According to the HTTP spec, representation negotiations have to be done via media types and request/response headers.

I suggest to inspect the Accept header on PUT and POST requests and not render anything if not present (which should be the default)


Affects: 1.0.0.RC1

Referenced from: pull request #167, and commits 5486712, f3c74ac

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions