Overview
| Artifact ID: | 9c0ed57e452d035b8bb45d6b3b86b036c288c4d1 |
|---|---|
| Ticket: | 838e99a76dd54f1961b8b5c4bdb3da114bf5b6f8
treat application/xml as text |
| User & Date: | dkf on 2016-10-08 15:53:47 |
Changes
- icomment:
It seems from the RFC that if a format with major type <tt>application</tt> comes through and the minor type is <tt>xml</tt>, <tt>xml-external-parsed-entity</tt>, or <tt>xml-dtd</tt>, <i>or</i> the minor type matches the glob pattern <tt>*+xml</tt>, then the data should be treated as textual despite being not generally deemed human-readable. (I'm totally OK with having the <tt>-binary</tt> switch override. In fact, it probably ought to override <i>both ways</i> so that any other weird cases can be handled by users without patching Tcl.) We probably ought to factor out this bit of decision making into its own procedure. The submitted patch is too simplistic.
- login: "dkf"
- mimetype: "text/x-fossil-wiki"
- username: "dkf"