Hello!
I've been using the helpful MIMEAccept class in werkzeug.datastructures and I noticed that while it does respect quality, it doesn't respect specificity as outlined in RFC 2616.
Media ranges can be overridden by more specific media ranges or specific media types. If more than one media range applies to a given type, the most specific reference has precedence. For example,
Accept: text/, text/html, text/html;level=1, */
have the following precedence:
- text/html;level=1
- text/html
- text/*
- /
Is this something that people are interested in seeing fixed? I'd be happy to open a pull.
Hello!
I've been using the helpful MIMEAccept class in
werkzeug.datastructuresand I noticed that while it does respect quality, it doesn't respect specificity as outlined in RFC 2616.Is this something that people are interested in seeing fixed? I'd be happy to open a pull.