Project

General

Profile

« Previous | Next » 

Revision 9815

Added by Jing Tao over 8 years ago

Don't need to add "." for file name between the identifier and file extention in the getObject method.
The v1 getExtension method includes '.'. But the v2 version doesn't include it.

View differences:

src/edu/ucsb/nceas/metacat/restservice/v1/MNResourceHandler.java
1117 1117
            String extension = ObjectFormatInfo.instance().getExtension(sm.getFormatId().getValue());
1118 1118
            String filename = id.getValue();
1119 1119
            if (extension != null) {
1120
            	filename = id.getValue() + "." + extension;
1120
            	filename = id.getValue() + extension;
1121 1121
            }
1122 1122
            response.setContentType(mimeType);
1123 1123
            response.setHeader("Content-Disposition", "inline; filename=" + filename);

Also available in: Unified diff