Actions
Bug #196
closedMetacat READ function should set mime type
Start date:
04/09/2001
Due date:
% Done:
0%
Estimated time:
Bugzilla-Id:
196
Description
Metacat read fucntion should set the Content-header: to contain the appropriate
mime-type for the data being returned. This will allow clients to distinguish
metadata downloads (text/xml) from data downloads (application/octet-stream) and
allow any object from metacat to be requested using only the accession #.
Updated by Jivka Bojilova over 23 years ago
DONE
put MIME type everywhere on return on "read" action. Set metadata returns to
"text/html" or "text/xml". Set zip returns to "application/zip". The servlet
context guesses the MIME type of the other returned data by its interface
getMimeType(filename).
Actions