Hi, I've added this (in revision 612806) to SlingScriptServlet.service(), to use an X-Sling-Warning HTTP header to indicate an abnormal non-critical condition:
final String contentType = request.getResponseContentType(); if(contentType == null) { res.addHeader("X-Sling-Warning", request.getClass().getSimpleName() + " does not provide a Content-Type"); res.setContentType("text/plain"); } else { res.setContentType(contentType); } In such a case (response Content-Type is not as expected), having the X-Sling-Warning header right next to other headers makes is easy to spot the problem, when troubleshooting one's app. What do you think of using such X-Sling-... headers where it makes sense? -Bertrand