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

Moderator: admin

Post Reply
bluster
Posts: 60
Joined: Wed Apr 23, 2014 6:38 pm
Contact:

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

Post 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

admin
Site Admin
Posts: 10067
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

Good stuff. Thanks for sharing :)
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 132 guests