-
Notifications
You must be signed in to change notification settings - Fork 889
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
Accept predicate with wildcard not allowed #1407
Comments
Could you file a bug against WebOb please? |
There seems to be a lack of documentation for WebOb that it even does this, but the source code indicates that it should work. |
This issue was opened in WebOb repository, here can be closed? |
I think it makes sense to leave it open until/if WebOb incorporates a solution and Pyramid is able to depend on that. If WebOb doesn't change, then this is still at least a documentation issue for Pyramid. |
This has now been fixed in WebOb using the patch provided by @ltvolks. |
Looks like this will be in webob 1.6. |
The docs for the
accept
predicate state that wildcards are allowed, but due to the way the 'offer' is checked in WebOb, anaccept
predicate with any wildcard component will fail:ValueError: The application should offer specific types, got 'text/*'
Here's a simple example:
The text was updated successfully, but these errors were encountered: