Page 1 of 1

About Question com.enthuware.ets.scwcd.v5.2.325 :

Posted: Mon Oct 13, 2014 12:37 pm
by bluster
Not really a question, but I want to spare others the research if they think this "doHead == doGet" answer is weird. I did, and followed the rabbit hole all the way to the source code. Indeed, doHead() does nothing but call doGet(), pausing only to set the Content Length header before returning.


protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
{
NoBodyResponse response = new NoBodyResponse(resp);
doGet(req, response);
response.setContentLength();
}
Source repository url - http://grepcode.com/file/repository.spr ... .java?av=f

Re: About Question com.enthuware.ets.scwcd.v5.2.325 :

Posted: Mon Oct 13, 2014 7:17 pm
by admin
Good stuff. Thanks for sharing :)