Project

General

Profile

« Previous | Next » 

Revision 846

Added by berkley over 22 years ago

fixed bug where the whole filename of a data file was not appended to the file input stream so metacat just returned a null document

View differences:

MetaCatServlet.java
794 794
        if(!filepath.endsWith("/")) {
795 795
          filepath += "/";
796 796
        }
797
        String filename = filepath + doc.getDocname();      //MIME type
797
        String filename = filepath + docid;      //MIME type
798 798
        String contentType = getServletContext().getMimeType(filename);
799 799
        if (contentType == null) {
800 800
          if (filename.endsWith(".xml")) {

Also available in: Unified diff