Closed
Bug 58037
Opened 25 years ago
Closed 25 years ago
Accept-encoding: "identity" in not needed, "compress" should be depreciated
Categories
(Core :: Networking: HTTP, enhancement, P3)
Core
Networking: HTTP
Tracking
()
RESOLVED
FIXED
mozilla0.9.3
People
(Reporter: havill, Assigned: havill)
References
Details
(Whiteboard: fixed on the trunk)
Attachments
(4 files)
|
2.44 KB,
patch
|
Details | Diff | Splinter Review | |
|
4.31 KB,
patch
|
Details | Diff | Splinter Review | |
|
3.42 KB,
patch
|
Details | Diff | Splinter Review | |
|
724 bytes,
patch
|
Details | Diff | Splinter Review |
the "identity" encoding being transmitted in the accept-encoding is not needed
and
implied according to HTTP/1.1
<URL:http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.3>, unless the
identity is to be refused with a q value of zero. It would be better to remove
it so
the request is less redundant.
Also, shouldn't the LZW based compress, which is not used anywhere, be supported
but
indicated as being "preferred less" than the better-maintained-with-a-future
zlib patent
free based gzip and deflate. Support it, of course, but given a choice between
the two,
Mozilla should request the format that we have a module maintainer for and the
format that
everything inside Mozilla (JAR, etc) is compressed with, so the q values should
be tweaked.
Leave the q value alone if the value is "x-compress", as the client is probably
sending a
request to an older server that doesn't understand q values.
| Assignee | ||
Comment 1•25 years ago
|
||
| Assignee | ||
Updated•25 years ago
|
Severity: trivial → enhancement
OS: Linux → All
Hardware: PC → All
Comment 2•25 years ago
|
||
Marking NEW so someone will look at it.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•25 years ago
|
||
This bug has a patch which needs to be reviewed. Adding keywords.
This patch incorrectly strips away the q values.
For e.g. if an accept-encoding was set as
Accept-Encoding: gzip;q=1.0, identity; q=0.5, *;q=0
it changes it to
Accept-Encoding: gzip,*
| Assignee | ||
Comment 6•25 years ago
|
||
We should be doing all this functionality in SetAcceptEncodings rather than
GetAcceptEncodings. Also the variable lowQ should be double instead of a float.
Also sscanf should be changed to PR_sscanf.
Neeti
Also strlen and sprintf should be changed to PL_Strlen and PR_snprintf
respectively.
Neeti
Comment 11•25 years ago
|
||
should this bug be targeted for 0.9.1? is the work going be wrapped up in the
next week or two?
Comment 12•25 years ago
|
||
The patch submitted need some changes as mentioned. Changing target milestone to
mozilla0.9.2
Target Milestone: mozilla0.9.1 → mozilla0.9.2
| Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: mozilla0.9.2 → mozilla0.9.3
Summary: "identity" in accept-encodings not needed, "compress" should be depreciated → Accept-encoding: "identity" in not needed, "compress" should be depreciated
| Assignee | ||
Comment 14•25 years ago
|
||
Need sr= for the following patch.
| Assignee | ||
Comment 15•25 years ago
|
||
Comment 16•25 years ago
|
||
sr=blizzard
Comment 17•25 years ago
|
||
Why not just change the default in all.js? This routine is only called for the
pref value, and maybe someone wants to prefer compress, for whatever reason.
I'll happily r= the one line patch for that.
| Assignee | ||
Comment 18•25 years ago
|
||
Comment 19•25 years ago
|
||
r=bbaetz
Comment 20•25 years ago
|
||
sr=darin
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 21•25 years ago
|
||
fix checked in (on the trunk)
You need to log in
before you can comment on or make changes to this bug.
Description
•