You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2003/03/28 06:46:07 UTC
DO NOT REPLY [Bug 18443] New: -
"Media Types and Wildcards" section is incorrect
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18443>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18443
"Media Types and Wildcards" section is incorrect
Summary: "Media Types and Wildcards" section is incorrect
Product: Apache httpd-2.0
Version: 2.0.32
Platform: Other
URL: http://httpd.apache.org/docs-2.0/content-
negotiation.html#better
OS/Version: Other
Status: NEW
Severity: Minor
Priority: Other
Component: Documentation
AssignedTo: bugs@httpd.apache.org
ReportedBy: seairth@seairth.com
According to RFC2616 Section 14.1, specific types have a high precedence than
more general types at the same quality level:
---begin_snippet---
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.
Accept: text/*, text/html, text/html;level=1, */*
have the following precedence:
1) text/html;level=1
2) text/html
3) text/*
4) */*
---end_snippet---
As a result, the example given:
text/html, text/plain, image/gif, image/jpeg, */*
would read as "I prefer text/html, text/plain, image/gif, or image/jpeg. If
none of those are available, then give me anything you might have."
It is not necessary to give */* a lower quality level. Technically, the
outcome will be the same. But the assertion is incorrect to start with.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org