Name |
Last commit
|
Last update |
---|---|---|
docs | ||
rest_framework | ||
.gitignore | ||
.travis.yml | ||
MANIFEST.in | ||
README.md | ||
mkdocs.py | ||
optionals.txt | ||
requirements.txt | ||
setup.py | ||
tox.ini |
The `DefaultContentNegotiation` handler uses For example: Google Chrome sends an Accept-header of `Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8`, when I request a *.png URL. After matching the media-types with the available renderers (in my case only a custom `PNGRenderer` with a `media_type='image/png'`), only `*/*;q=0.8` is left, which happens to have the same length as the "image/png" media-type defined by the renderer (9 characters). The specificity of the renderer's media-type over the Accept-header's one is only determined by length. Using your `_MediaType.precedence` would be preferable in my eyes. Regards, Fabian
Name |
Last commit
|
Last update |
---|---|---|
docs | Loading commit data... | |
rest_framework | Loading commit data... | |
.gitignore | Loading commit data... | |
.travis.yml | Loading commit data... | |
MANIFEST.in | Loading commit data... | |
README.md | Loading commit data... | |
mkdocs.py | Loading commit data... | |
optionals.txt | Loading commit data... | |
requirements.txt | Loading commit data... | |
setup.py | Loading commit data... | |
tox.ini | Loading commit data... |