Skip to content

Releases: mccutchen/go-httpbin

v2.14.0

12 May 16:49
874932b
Compare
Choose a tag to compare

What's Changed

  • chore(ci): tweak codecov configuration by @mccutchen in #168
  • add appProcotol to the k8s service for port name 'http' by @bcollard in #169
  • fix: mitigate allowed redirect domain bypass by @mccutchen in #174

🔐 Security fix 🔐

This release fixes a bug that allowed clients to bypass the -allowed-redirect-domains/ALLOWED_REDIRECT_DOMAINS configuration used by the /redirect-to endpoint by passing an absolute URL without a scheme (e.g. /redirect-to?url=//evil.com).

See #173 and #174 for details about the issue and the fix, and see the Production Considerations section of the README for more info on why that configuration is important.

New Contributors

Full Changelog: v2.13.4...v2.14.0

v2.13.4

18 Feb 16:08
00a70e7
Compare
Choose a tag to compare

What's Changed

  • feat: support Fastly and Akamai headers for client IP addr by @haccht in #167

New Contributors

Full Changelog: v2.13.3...v2.13.4

v2.13.3

12 Feb 20:03
f6ce865
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.13.2...v2.13.3

v2.13.2

13 Jan 15:25
b292fe6
Compare
Choose a tag to compare

What's Changed

  • feat: /status endpoint supports weighted choice from multiple status codes by @mccutchen in #162

Full Changelog: v2.13.1...v2.13.2

v2.13.1

13 Dec 14:18
1a41486
Compare
Choose a tag to compare

What's Changed

  • fix: websocket conns do not require Connection: upgrade header by @mccutchen in #161

Full Changelog: v2.13.0...v2.13.1

v2.13.0

12 Dec 23:10
21c68b8
Compare
Choose a tag to compare

✨ Highlights ✨

  • New /websocket/echo endpoint that implements a basic, conformant WebSocket echo server, useful for testing more advanced HTTP proxy use cases or WebSocket client implementations
  • New /sse endpoint that implements a simple Server-Sent Events stream, useful for testing more advanced HTTP proxy use cases
  • Support for serving go-httpbin under a path prefix (thanks @waschik!)

What's Changed

New Contributors

Full Changelog: v2.12.0...v2.13.0

v2.12.0

05 Nov 13:23
844a11a
Compare
Choose a tag to compare

What's Changed

  • fix: /base64 endpoint decodes both URL-safe and standard b64 encodings by @mccutchen in #153

Full Changelog: v2.11.1...v2.12.0

v2.11.1

06 Oct 14:51
e3c4f8d
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.11.0...v2.11.1

v2.11.0

28 Jul 16:24
62ec555
Compare
Choose a tag to compare

What's Changed

  • Add tests for correct handling of Expect: 100-continue by @mccutchen in #138
  • Allow filtering incoming request headers using -exclude-headers/EXCLUDE_HEADERS by @bytemain in #139

New Contributors

Full Changelog: v2.10.0...v2.11.0

v2.10.0

10 Jul 17:11
c9f4177
Compare
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