From: Wolfgang M. M. <wol...@us...> - 2004-07-07 20:54:53
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/http/webdav/methods In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28118/src/org/exist/http/webdav/methods Modified Files: Head.java Log Message: WebDAV method HEAD returned error for non-existing resource. Should return HTTP 404 (NOT_FOUND) Index: Head.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/http/webdav/methods/Head.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Head.java 25 May 2004 09:26:04 -0000 1.2 --- Head.java 7 Jul 2004 20:54:44 -0000 1.3 *************** *** 47,52 **** DocumentImpl resource) throws ServletException, IOException { if(resource == null) { ! // GET is not available on collections ! response.sendError(HttpServletResponse.SC_FORBIDDEN, "GET is not available on collections"); return; } --- 47,51 ---- DocumentImpl resource) throws ServletException, IOException { if(resource == null) { ! response.sendError(HttpServletResponse.SC_NOT_FOUND); return; } |