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

Check link content type against that listed in the link object #31

Open
tomhrr opened this issue Mar 6, 2015 · 0 comments
Open

Check link content type against that listed in the link object #31

tomhrr opened this issue Mar 6, 2015 · 0 comments

Comments

@tomhrr
Copy link
Member

tomhrr commented Mar 6, 2015

The "type" attribute of a link object is a hint as to the content type of a response got by requesting the link URL. Modify net.apnic.rdap.conformance.test.common.Link so that it accepts an optional content type in its constructor and checks that the response's content type matches. Since the context object supports alternative accept content types, Link will probably have to makes its own copy of the context for this to work correctly. A response that doesn't match the expected content type should only yield a warning.

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

No branches or pull requests

1 participant