Skip to content

Commit

Permalink
Added IIIF profile with appropriate version number to content type re…
Browse files Browse the repository at this point in the history
…sponses for info.json
  • Loading branch information
ruven committed Dec 7, 2022
1 parent 34f32a5 commit ef1ce8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/IIIF.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
Expand Down

0 comments on commit ef1ce8a

Please sign in to comment.