Skip to content

v5.3.0: Accept headers and no logging

Compare
Choose a tag to compare
@spenczar spenczar released this 20 Feb 17:43
· 527 commits to main since this release

This release includes the following changes:

  • Generated code no longer logs with the standard library's log package under any circumstances. Previously, it would log in rare cases like when failing to write a complete error body back to clients or when failing to close request bodies. Now, those circumstances trigger an Error hook if it hasn't already been triggered once during handling of the request.
    (dfbd75a)
  • Generated Go clients now set an Accept header in requests. The JSON client sets application/json, and the Protobuf client sets application/protobuf. This should make generated clients work more smoothly with API gateways. Servers don't do any particular handling with this new header and it is not required by the Twirp spec, but it's recommended that clients set it in other language implementations as well.
    (f91c5c6)
  • Generated Python clients now work with Python 3.
    (dbf7a0d)