Overview
| Artifact ID: | dadfc6c7e6a04b705eeb6325abb2c22ca05df935ea4e0a0049d235f5d70c466b |
|---|---|
| Ticket: | a13b9d0ce1083eb302a9ad1ce88e7351c928fdd6
The http package uses wrong mapping for content-encoding |
| User & Date: | kjnash on 2022-09-11 11:02:50 |
Changes
- icomment:
The existing http allows "Content-Encoding: gzip,deflate,compress". Of these options, gzip is by far the most commonly used. Commit [d482da7d8c] implements the suggestions made in the bug report (above): (a) it removes option "compress" which appears to use the wrong algorithm; (b) it allows option "deflate" to use either the RFC-compliant format, or the Microsoft-inspired non-compliant "raw" format (except that a -channel uses only the compliant format). Re "compress": RFC 9110 Sec 8.4.1.1 states The "compress" coding is an adaptive Lempel-Ziv-Welch (LZW) coding [Welch] that is commonly produced by the UNIX file compression program "compress". The output of "zlib compress" appears not to be in "UNIX compress" format. The command-line tools compress/decompress and the Tcl commands "zlib compress"/"zlib decompress" cannot interoperate. It appears therefore that the Tcl implementation is incorrect. I have removed the "compress" option from: (1) the default value of "Accept-Encoding" (2) the options implemented in http::ContentEncoding (3) http(n) Tests have been modified accordingly. In view of the unpopularity of "compress" on Web servers, it does not seem worthwhile to attempt to fix the format in http.
- login: "kjnash"
- mimetype: "text/x-fossil-plain"
- resolution changed to: "Fixed"
- status changed to: "Pending"