diff --git a/ChangeLog b/ChangeLog index f24aad7b..feba0418 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +07/12/2022: + - Added IIIF profile with appropriate version number to content type responses for info.json + + 19/11/2022: - Fixed typo in TileManager getRegion() function which was preventing bit depth and number of channels being correctly assigned to output region in some cases diff --git a/src/IIIF.cc b/src/IIIF.cc index 7dd9f2a6..8bc8629f 100644 --- a/src/IIIF.cc +++ b/src/IIIF.cc @@ -271,8 +271,9 @@ void IIIF::run( Session* session, const string& src ) // Now output the HTTP header and info text + string mime = string("application/ld+json;profile=\"") + iiif_context + "\""; stringstream header; - header << session->response->createHTTPHeader( "ld+json", (*session->image)->getTimestamp() ) + header << session->response->createHTTPHeader( mime, (*session->image)->getTimestamp() ) << infoStringStream.str(); session->out->putStr( header.str().c_str(), (int) header.tellp() );