suvera / scim2-compliance-test-utility

SCIM 2.0 Compliance Test Utility
https://suvera.github.io/
MIT License
10 stars 6 forks source link

Do not check Content-Type upon 204 code #4

Closed christiaangoossens closed 2 months ago

christiaangoossens commented 2 months ago

204 No Content does not return any content and thus, according to the HTTP specification, does not require a Content-Type. None of the examples in RFC 7644 include a Content-Type for 204 responses, even if they do for 200 responses.

Therefore, we should not check it on 204 responses, the header should be ignored.