-
Notifications
You must be signed in to change notification settings - Fork 354
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
feat: Exclude certain endpoints from media type validation #544
feat: Exclude certain endpoints from media type validation #544
Conversation
estahn
commented
Nov 6, 2018
- Fixes Ability to disable media type validation for UriRetriever #543 and Mime type for schema issues #540
@erayd I'm flexible on the naming of the |
@estahn is blacklist the correct term? Wouldn't a list of allowed endpoints be a whitelist? |
- Change stripos to strpos to match case-insensitive - Rename $mediaTypeBlacklist to $allowedInvalidContentTypeEndpoints - Refactor for to foreach
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good - still needs a bit of cleaning up on the names, but otherwise OK 👍.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - thank you for contributing this 👍.
@bighappyface Your turn :-). |