Skip to content
Tcl Source Code Artifact [d64d866566]
Login

Artifact [d64d866566]

Artifact d64d866566d1db99f3f62e5e484ddd2d1fc0567f11e4524fdde1b48edd2c908f:

Ticket change [d64d866566] - Closed ticket [fb642c54bc58b31d|fb642c54bc]: <i>Incorrect download of compressed encoded data</i> plus 6 other changes by kjnash on 2022-09-11 16:43:20.
D 2022-09-11T16:43:20.203
J closedate 2459834.19676161
J closer kjnash
J icomment This\sticket\sraises\sthree\sseparate\sissues:\r\n\r\n1.\s[open\s$file\swb]\r\n\r\nThe\s"b"\sflag\sis\sequivalent\sto\r\n\s\s\s\sfconfigure\s$file\s-translation\sbinary\r\nand\sin\scurrent\shttp\sthis\sis\sdone\sautomatically\sif\sthe\scontent-type\sis\snon-binary\sor\sif\sthe\sstacked\schannel\sincludes\sdecompression\s-\susing\sthe\sfollowing\scode:\r\n\r\n\s\s\s\sif\s{$state(-binary)\s||\s[IsBinaryContentType\s$state(type)]}\s{\r\n\s\s\s\s\s\s\s\s#\sTurn\soff\sconversions\sfor\snon-text\sdata.\r\n\s\s\s\s\s\s\s\sset\sstate(binary)\s1\r\n\s\s\s\s}\r\n\s\s\s\sif\s{[info\sexists\sstate(-channel)]}\s{\r\n\s\s\s\s\s\s\s\sif\s{$state(binary)\s||\s[llength\s[ContentEncoding\s$token]]}\s{\r\n\s\s\s\s\s\s\s\s\s\s\s\sfconfigure\s$state(-channel)\s-translation\sbinary\r\n\s\s\s\s\s\s\s\s}\r\n\s\s\s\s\s\s\s\s...\r\n\s\s\s\s}\r\n\r\n2.\s"Accept-Encoding\sidentity"\r\n\r\nThis\sis\snecessary\sto\stell\sthe\sserver\snot\sto\suse\scompression.\s\sThe\shttp::geturl\soption\s-zip\s0\sshould\sdo\sthis\sbut\sdoes\snot\s-\sthis\sbug\sis\sunrelated\sto\sthis\sticket\s(which\salways\sused\sthe\sdefault\s-zip\s1)\sand\swas\sfixed\sin\scommit\s[3cee774ebf]\sof\sbranch\shttp-bugfixes-2022H2.\r\n\r\n3.\susing\sgzip\r\n\r\nThe\sresponse\sis\struncated\sif\sgzip\sis\sused.\r\n\r\nThe\serror\sis\sthe\ssame\sas\sthe\struncation\sissue\sseen\sin\stickets\s[3610253]\sfor\sa\schunked+gzip\sresponse\swritten\sdirectly\sto\sa\s-channel.\s\sThat\sbug\sis\snow\sfixed.
J login kjnash
J mimetype text/x-fossil-plain
J resolution Fixed
J status Closed
K fb642c54bc58b31daafba9ae495ded4b0417d9bc
U kjnash
Z 4f41442f50622da0559776989536c04e