Affects Version/s: Servlets Post 2.1.0
Fix Version/s: None
SLING-1336 the Sling POST Servlet can interpret the Accept request header to select what response content type to render.
Unfortunately that handling seems broken as for an Accept header like (as generated by FireFox with the JSONovich plugin installed) :
the JSON response might be selected but sometimes also text/html (we can observe both behaviours for different server platforms with our application).
The Accept header should probably consider equivalent q values (as for text/html and application/json in the example) to solve the tie by selecting the first type list; thus text/html in this example.