Hymir is a Java based IIIF Server. It is based on "IIIF Image API Java Libraries" and "IIIF Presentation API Java Libraries" projects (see https://github.com/dbmdz)
MIT License
27
stars
7
forks
source link
Fix return code for HttpMediaTypeNotAcceptable #373
requests with a strange Accept header should correctly lead to a 406 return code. Internally, 406 is recognized, but due to "catch-all" logic, 500 will be returned.
Hi,
requests with a strange
Accept
header should correctly lead to a 406 return code. Internally, 406 is recognized, but due to "catch-all" logic, 500 will be returned.This PR fixes and unit-test it.