Skip to content

v2.7.0

Choose a tag to compare

@mccutchen mccutchen released this 02 May 16:11
· 64 commits to main since this release
f981f94

What's Changed

⚠️ Response format changes ⚠️

As of #117, the incoming request body for the /post, /put (etc) endpoints will be returned as a base64-encoded data: URL to match the original httpbin's behavior.

Before

$ curl -sSL --data-binary @tiny.gif -H "Content-Type: image/gif"  https://httpbingo.org/post | jq .data
"GIF89a\u0001\u0000\u0001\u0000�\u0000\u0000���\u0000\u0000\u0000!�\u0004\u0001\u0000\u0000\u0000\u0000,\u0000\u0000\u0000\u0000\u0001\u0000\u0001\u0000\u0000\u0002\u0002D\u0001\u0000;"

After

$ curl -sSL --data-binary @tiny.gif -H "Content-Type: image/gif"  localhost:8080/post | jq .data 
"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="

New Contributors

Full Changelog: v2.6.0...v2.7.0