Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 987dd03450a0a27ee68a3ed06bcbc69f1e04be9e8b71165cd433a31b51afcf94
Ticket: 8eb64b15208f62088e6cd120795e13b32020aeaa
http: invalid reply header "content-encoding: UTF-8" gives error, but may be tolerated
User & Date: oehhar on 2021-12-03 11:07:01
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    The return header "Content-encoding" is now supported, and may officially have the following values:
    
    <verbatim>
    Content-Encoding: gzip | compress | deflate | br| identity
    </verbatim>
    
    I have a server (SAP Production) where I do a post-call with JSON data.
    The response has:
    <verbatim>
    Content-Encoding: UTF-8
    </verbatim>
    
    Currently, http package 2.9.5 fails with the correct error: 
    <verbatim>
    unsupported content-encoding "UTF-8"
    </verbatim>
    
    and writes the Log:
    <verbatim>
    error doing decompression for token ::http::1: unsupported content-encoding "UTF-8"
    </verbatim>
    
    Would it be a good idea here to be more tolerant, and fall back to identity ?
    
    Apparently, others just ignore this...
    
    Thanks for any opinion,
    Harald
    
  5. foundin changed to: "2.9.5"
  6. is_private changed to: "0"
  7. login: "oehhar"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "oehhar"
  14. subsystem changed to: "29. http Package"
  15. title changed to:
    http: invalid reply header "content-encoding: UTF-8" gives error, but may be tolerated
    
  16. type changed to: "RFE"