Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow wildcards to be used when comparing a MIMEAccept against an offer #185
Primary motivation is to address Pylons/pyramid#1407, which would enable usage of wildcards as an accept predicate:
@view_config(accept='text/*') def view(request): ...
>>> accept = MIMEAccept('text/html') >>> 'text/*' in accept True >>> '*/html' in accept True >>> '*' in accept True