NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi Ming Fu, Thanks for reporting this problem. What version of Tomcat are you running? I'm seeing it on a server running Tomcat 6.0.32. I've entered it into our issue tracking system. You can follow it here if you'd like: https://www.unidata.ucar.edu/jira/browse/TDS-199 Thanks, Ethan On 7/28/2011 8:29 PM, Ming Fu wrote: > 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
thredds
archives: