1.2
1.2
Release date: 2021-05-19
The most important feature of Couper 1.2 is the introduction of custom error handling in form of the error_handler
block.
You can now register error handlers for error types. Instead of the standard error_file
template, you can flexibly respond with arbitrary response
s.
error_handler
is allowed in access control blocks (jwt
, saml2
…), where you could e.g. handle missing tokens with a redirect-to-login.
In the future, error_handler
will be usable in more config areas. Refer to the example if you want to see it in action.
-
Added
-
Changed
-
Fixed
- Fix
/healthz
route when called withaccept-encoding: gzip
(#222) - Don't panic over duplicate access control definitions, log error instead (#221)
- Response for missing routes should have status code
404
(#224) - Fix possible race-condition with concurrent
openapi
validations (#231) - Fix use of server URLs without port in
openapi
(#230)
- Fix