Feature #4000 URI Resolver - must support HEAD request

https://support.d4science.org/4000

Added doHead handler



git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@128626 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-05-16 16:05:45 +00:00
parent d0daeb3de8
commit 1e4a4e1083
1 changed files with 11 additions and 0 deletions

View File

@ -198,6 +198,17 @@ public class StorageIDResolver extends HttpServlet {
}
/* (non-Javadoc)
* @see javax.servlet.http.HttpServlet#doHead(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
*/
@Override
protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
logger.info("doHead working..");
req.setAttribute(VALIDATION, "true");
doGet(req, resp);
}
/**
* Send error quietly.
*