commit | 236654b82df30b2df5edf72cd808f792cdde9d3a | [log] [tgz] |
---|---|---|
author | Jeremy Hylton <jeremy@alum.mit.edu> | Fri Mar 27 20:24:34 2009 +0000 |
committer | Jeremy Hylton <jeremy@alum.mit.edu> | Fri Mar 27 20:24:34 2009 +0000 |
tree | bf699a151050ff282f72d178273daf8a5b3fa1f4 | |
parent | 98eb6c283881168adbedf37bb34300c39954397a [diff] |
Fix some string encoding issues with entity bodies in HTTP requests. RFC 2616 says that iso-8859-1 is the default charset for HTTP entity bodies, but we encoded strings using ascii. See http://bugs.python.org/issue5314. Changed docs and code to use iso-8859-1. Also fix some brokenness with passing a file as the body instead of a string. Add tests to show that some of this behavior actually works.