Commit Graph

6 Commits

Author SHA1 Message Date
Steven Honson b1196a239b Support for setting multiple cookies in a single request. 2012-08-20 21:54:27 +10:00
Radomir Stevanovic 9a56bb8dd0 bugfix: JSON-safe encoding of raw binary data/files
Encoding of the received files and/or body data was failing in case of raw
binary data being POSTed/PUT/etc. (The exact trigger was actually a non-UTF-8
data stream, since Flask's `jsonify`, i.e. `simplejson.dumps` assumes UTF-8.)

Binary data in a JSON response are now encoded as "data" URLs, according to
RFC 2397. "Data" URL scheme was chosen for its simplicity and clarity. MIME
type is included. Plain text is passed thru unmodified, as before.

Also, tests demonstrating the bug/fix added to `test_httpbin.py`.
2012-08-14 22:57:35 +02:00
Flavio Percoco Premoli 6a3a2fb63a updated README 2012-06-30 02:08:36 +02:00
Kenneth Reitz d00a865e57 Added Kyle Conroy to AUTHORS 2011-10-29 15:51:22 -03:00
Kenneth Reitz 18e2087a56 Added contribs to AUTHORS 2011-10-09 08:46:03 -04:00
Kenneth Reitz 53441fe9fa Add Zbigniew Siciarz to authors 2011-06-13 09:08:25 -04:00