Add default HEAD servlet
------------------------
Key: SLING-1180
URL: https://issues.apache.org/jira/browse/SLING-1180
Project: Sling
Issue Type: New Feature
Components: Servlets
Affects Versions: Servlets Get 2.0.6
Reporter: Felix Meschberger
Fix For: Servlets Get 2.0.8
RFC 2616 states: "The HEAD method is identical to GET except that the server
MUST NOT return a message-body in the response."
Currently Sling has no out-of-the-box support for handling HEAD requests and
thus most HEAD requests will (in a default Sling installation) be handled by
WebDAV servlet which handles all requests not handled by any other
servlet/script.
I suggest we add a DefaultHeadServlet which handles HEAD requests as follows:
* wrap the response dropping any output (null writer/outputstream)
* wrap request overwriting the getMethod() method simulating a GET request
* forward the request to the request resource
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.