mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
9a56bb8dd0
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`.
18 lines
328 B
Plaintext
18 lines
328 B
Plaintext
HttpBin is written and maintained by Kenneth Reitz and
|
|
various contributors:
|
|
|
|
Development Lead
|
|
````````````````
|
|
|
|
- Kenneth Reitz <_@kennethreitz.com>
|
|
|
|
|
|
Patches and Suggestions
|
|
```````````````````````
|
|
|
|
- Zbigniew Siciarz
|
|
- Andrey Petrov
|
|
- Lispython
|
|
- Kyle Conroy
|
|
- Flavio Percoco
|
|
- Radomir Stevanovic (http://github.com/randomir) |