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)

enhancement

Tracking

()

RESOLVED FIXED
mozilla0.9.3

People

(Reporter: havill, Assigned: havill)

References

Details

(Whiteboard: fixed on the trunk)

Attachments

(4 files)

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.
Severity: trivial → enhancement
OS: Linux → All
Hardware: PC → All
Marking NEW so someone will look at it.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Depends on: 65092
No longer depends on: 65092
Blocks: 65092
This bug has a patch which needs to be reviewed. Adding keywords.
Keywords: patch, review
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,*
We should not be stripping away the "q" values.
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
->neeti
Assignee: gagan → neeti
Target Milestone: --- → mozilla0.9.1
This patch needs some changes
Assignee: neeti → havill
should this bug be targeted for 0.9.1? is the work going be wrapped up in the next week or two?
The patch submitted need some changes as mentioned. Changing target milestone to mozilla0.9.2
Target Milestone: mozilla0.9.1 → mozilla0.9.2
Open Networking bugs, qa=tever -> qa to me.
QA Contact: tever → benc
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
Need sr= for the following patch.
sr=blizzard
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.
r=bbaetz
sr=darin
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
fix checked in (on the trunk)
Keywords: vtrunk
Whiteboard: fixed on the trunk
Component: Networking → Networking: HTTP
QA Contact: benc → tever
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: