Relax mandatory content-type
header field requirement for PUT, POST with no content body.
#659
Milestone
content-type
header field requirement for PUT, POST with no content body.
#659
It is the case that PUT and POST requests might be made without a content body, such as in the case of creating containers. In such cases, mandating a
content-type
header field seems an absurd requirement, for there is no content (This does not preclude the opportunity for a client to specify a media-type, if it so wishes).From RFC9110 Section 8.3:
There is no requirement as far as RFC9110 is concerned that a content-type be provided in the absence of a body.
Further, the LDP spec in 5.2.3.4 and 5.2.3.12 only demands of clients, when they provide bodies in POST requests, must be of suitable content-types (turtle and json-ld resp.) which is specified in the content-type header. That the LDP spec goes out of its way to specify this implies, there is no requirement outside these cases in which a POST request needs to specify any
content-type
, beyond the obvious requirements of RFC9110 (then RFC7321) above.The text was updated successfully, but these errors were encountered: