Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New: Add 'accept' header option on validator #88

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ahankinson
Copy link

For IIIF services that provide both v2 and v3 manifests at the same URL, the validator needs to send an appropriate 'accept' header to ensure it is returning the appropriate IIIF version response.

This PR adds a checkbox to the validator to optionally include an 'Accept' header in the request. The header is set according to the selected IIIF version, which makes it possible to request v3 manifests from a 'default' v2 service, or vice-versa.

For IIIF services that provide both v2 and v3 manifests at the same URL, the validator needs to send an appropriate 'accept' header to ensure it is returning the appropriate IIIF version response.

This PR adds a checkbox to the validator to optionally include an 'Accept' header in the request. The header is set according to the selected IIIF version, which makes it possible to request v3 manifests from a 'default' v2 service, or vice-versa.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.8%) to 81.752% when pulling 3412b7e on bodleian:add-accept-header into bd49884 on IIIF:master.

@ahankinson
Copy link
Author

I think the CI failure is during installation for Python 2.7, and not because of this change.

@glenrobson
Copy link
Member

Thanks Andrew, I’ll have a proper look but I think the python 2.7 issue is due to the version of Pillow. I’ve got a fix in a branch I’m working on to improve the error messages and I’ll merge that first before this so the fix is in the master branch.

@ahankinson
Copy link
Author

I just noticed that this would fix #74 as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants