Skip to content

Releases: mccutchen/go-httpbin

v2.10.0

10 Jul 17:11
c9f4177

Choose a tag to compare

What's Changed

⚠️ Response format changes ⚠️

  • The behavior of the /drip endpoint has been adjusted slightly. In particular, the endpoint now waits until after the initial delay to start the response (i.e. write the status code), rather than starting the response immediately and then waiting for the initial delay to write the body.
  • The standard Content-Type used for JSON responses has been changed from the non-standard application/json; encoding=utf-8 to the standard application/json; charset=utf-8
  • Error responses generated by go-httpbin itself (e.g. due to invalid input) are returned as structured JSON:
    {
      "status_code": 400,
      "error": "Bad Request",
      "detail": "invalid status code: 1024 not in range [100, 599]"
    }

Full Changelog: v2.9.2...v2.10.0

v2.9.2

27 Jun 13:31
499044e

Choose a tag to compare

What's Changed

  • fix: include Transfer-Encoding when echoing request headers by @mccutchen in #130

Full Changelog: v2.9.1...v2.9.2

v2.9.1

21 Jun 17:32
69e0f18

Choose a tag to compare

What's Changed

  • fix: use https schema if r.TLS is not nil by @llimllib in #126
  • fix: populate files slice on multipart/form submission by @llimllib in #127

Full Changelog: v2.9.0...v2.9.1

v2.9.0

18 Jun 15:48
a70a847

Choose a tag to compare

What's Changed

⚠️ Response format changes ⚠️

To improve compatibility with the original httpbin.org implementation:

  • Endpoints that return metadata about the incoming HTTP request now include the request method
  • Endpoints that return a data field containing the incoming HTTP request's body will now return an empty string for requests with empty bodies

New Contributors

Full Changelog: v2.8.0...v2.9.0

v2.8.0

05 May 21:43
7e81a93

Choose a tag to compare

What's Changed

⚠️ Response format changes ⚠️

As of #119, the /base64 endpoint:

  • Properly handles padded inputs instead of returning trailing null bytes (see #118)
  • Only accepts and returns URL-safe base64 encodings instead of standard base64 encodings, to match the original httpbin's behavior

Full Changelog: v2.7.0...v2.8.0

v2.7.0

02 May 16:11
f981f94

Choose a tag to compare

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

v2.6.0

13 Mar 14:35
cbbc296

Choose a tag to compare

What's Changed

Full Changelog: v2.5.6...v2.6.0

v2.5.6

15 Feb 21:48
8d82c0d

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.5.5...v2.5.6

v2.5.5

31 Jan 14:26
f1f2de9

Choose a tag to compare

What's Changed

Full Changelog: v2.5.4...v2.5.5

v2.5.4

17 Jan 13:37
67ddb1f

Choose a tag to compare

What's Changed

  • Improve tests for streaming response endpoints by @mccutchen in #105
  • feat: ensure that 404 responses indicate that they originate from go-httpbin by @chinaran in #107

New Contributors

Full Changelog: v2.5.3...v2.5.4