Skip to content
Tcl Source Code History Of Ticket 338d979f5be43e5d
Login

History Of Ticket 338d979f5be43e5d

Artifacts Associated With Ticket 338d979f5be43e5d

  1. Ticket change [1d4ce8349e] (rid 185215) by sbron on 2020-07-24 20:07:22:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      When a web site doesn't provide a content type, RFC 2616 specifies: "If and only if the media type is not given by a Content-Type field, the recipient MAY attempt to guess the media type via inspection of its content and/or the name extension(s) of the URI used to identify the resource. If the media type remains unknown, the recipient SHOULD treat it as type "application/octet-stream". The http package does not follow this directive and treats all data with an unknown content type as text. This is an unfortunate choice, because once converted to text (translating \r\n to \n), information has been lost that can't be recovered. Reporting text as binary data on the other hand can easily be corrected.
      
      As an example, a popular Dutch web site produces a png image without providing a content-type header: https://image.buienradar.nl/2.0/image/sprite/RadarMapRainNL. See also the attached script.
      
      The only work-around is to add the -binary option to http::geturl. But that treats any response as binary, even when a site does provide a content-type header.
      
    5. foundin initialized to: "2.9.1"
    6. is_private initialized to: "0"
    7. login: "sbron"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "8475f421649231f1e116ac602bea4537d2b027b4"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "sbron"
    14. subsystem initialized to: "29. http Package"
    15. title initialized to:
      Image data without content type is corrupted by http package
      
    16. type initialized to: "Bug"
  2. Add attachment "buienradar.tcl" [a65df16aed] (rid 185216) by sbron on 2020-07-24 20:07:39.

  3. Ticket change [6be61206e4] (rid 204055) by kjnash on 2022-09-10 11:58:57:

    1. closedate changed to: "2459832.99927418"
    2. closer changed to: "kjnash"
    3. icomment:
      Fixed in commit [763efd4e7f], branch http-bugfixes-2022H2.
      
    4. login: "kjnash"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"