Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 89910ba5fc9e6a260aab3cf7648d3a9b4a6f231b
Ticket: 3009322fffffffffffffffffffffffffffffffff
Test for non-text data prevents transliteration of RSS chars
User & Date: jda3000 on 2010-05-31 01:57:19
Changes

  1. assignee changed to: "patthoyts"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The test for text vs binary content that takes place in http:Event near the comment "# Turn off conversions for non-text data" only checks for content types that start with "text"  like "text/xml" or "text/html" many sites use "application/rss+xml" or the like to describe the content of the response if it is an rss feed.
    
    Perhaps the test should allow for this.
    
    Here is the test as written:
    
                if {
                    $state(-binary) || ![string match -nocase text* $state(type)]
                } then {
                    # Turn off conversions for non-text data
                    set state(binary) 1
                }
    
    Here is a work-around that satisfied me:
    
    if {![string match -nocase application/rss* $state(type)] &&  ![string match -nocase application/xml* $state(type)] } {set state(binary) 1}
    
    That is, I added a test for rss and xml  before setting the state(binary) flag to 1.
    
    
    
  4. foundin changed to: "obsolete: 8.6b1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "jda3000"
  10. subsystem changed to: "29. http Package"
  11. title changed to:
    Test for non-text data prevents transliteration of RSS chars
    
  12. type changed to: "Bug"