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
- assignee changed to: "patthoyts"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "obsolete: 8.6b1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "jda3000"
- subsystem changed to: "29. http Package"
- title changed to:
Test for non-text data prevents transliteration of RSS chars
- type changed to: "Bug"