Revision 6507
Added by ben leinfelder about 13 years ago
src/edu/ucsb/nceas/metacat/restservice/MNResourceHandler.java | ||
---|---|---|
613 | 613 |
|
614 | 614 |
DescribeResponse dr = MNodeService.getInstance().describe(session, id); |
615 | 615 |
//response.addHeader("pid", pid); |
616 |
response.addHeader("DataONE-Checksum", dr.getDataONE_Checksum().getValue()); |
|
616 |
response.addHeader("DataONE-Checksum", dr.getDataONE_Checksum().getAlgorithm() + "," + dr.getDataONE_Checksum().getValue());
|
|
617 | 617 |
response.addHeader("Content-Length", dr.getContent_Length() + ""); |
618 | 618 |
response.addHeader("Last-Modified", DateTimeMarshaller.serializeDateToUTC(dr.getLast_Modified())); |
619 | 619 |
response.addHeader("DataONE-fmtid", dr.getDataONE_ObjectFormatIdentifier().getValue()); |
Also available in: Unified diff
include checksum algorithm when setting describe
https://redmine.dataone.org/issues/1799