Revision 846
Added by berkley about 23 years ago
src/edu/ucsb/nceas/metacat/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
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