Hi All,
In thredds.servlet.ServletUtil.java, line 607:
  res.addHeader("Content-Length", Long.toString(contentLength));
The above line is not setting up "Content-Length" correctly for HTTP Head 
Request in Tomcat.
As the current implementation in Tomcat, using doGet method to handle HTTP Head 
request will be resulted in a NoBodyResponse to be returned.
The NoBodyResponse only accepts response.setContentLength method, otherwise, it 
always sets the Content-Length to 0.
Suggested fix is to override doHead() in thredds.servlet.FileServerServlet.java 
 and make it as a delegator to doGet() method.
Thanks,
Ming Fu
Software Engineer
Tasmanian Partnership for Advanced Computing
University of Tasmania