Closed jaytaph closed 9 years ago
I don't think application/pdf
is more specific than text/xml
according to the sentence you pasted.
No, text/xml
isnt... but I said: text/html
, which is
In the priorities?
In your example there is not more than one media range applying to a given type. So, the condition quoted from the RFC is not satisfied.
text/*
applies to test/html
and application/pdf
applies to application/pdf
. Only one media range applies to each of these server priorities.
Since they have the same q
value, the choice comes down to server priority.
Ah that actually might make sense. Thanks!
When given the following header:
it should prioritize
application/pdf
overtext/html
, asapplication/pdf
is matched more specifically. This is taken from RFC 2616, chapter:Right now, it prefers
text/html
.