Overview
| Artifact ID: | d64d866566d1db99f3f62e5e484ddd2d1fc0567f11e4524fdde1b48edd2c908f |
|---|---|
| Ticket: | fb642c54bc58b31daafba9ae495ded4b0417d9bc
Incorrect download of compressed encoded data |
| User & Date: | kjnash on 2022-09-11 16:43:20 |
Changes
- closedate changed to: "2459834.19676161"
- closer changed to: "kjnash"
- icomment:
This ticket raises three separate issues: 1. [open $file wb] The "b" flag is equivalent to fconfigure $file -translation binary and in current http this is done automatically if the content-type is non-binary or if the stacked channel includes decompression - using the following code: if {$state(-binary) || [IsBinaryContentType $state(type)]} { # Turn off conversions for non-text data. set state(binary) 1 } if {[info exists state(-channel)]} { if {$state(binary) || [llength [ContentEncoding $token]]} { fconfigure $state(-channel) -translation binary } ... } 2. "Accept-Encoding identity" This is necessary to tell the server not to use compression. The http::geturl option -zip 0 should do this but does not - this bug is unrelated to this ticket (which always used the default -zip 1) and was fixed in commit [3cee774ebf] of branch http-bugfixes-2022H2. 3. using gzip The response is truncated if gzip is used. The error is the same as the truncation issue seen in tickets [3610253] for a chunked+gzip response written directly to a -channel. That bug is now fixed. - login: "kjnash"
- mimetype: "text/x-fossil-plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"