Closed cemremengu closed 3 years ago
I think after rate_limit
, it goes through the error handler chain if the request was rejected. So I think you'll need to configure handle_errors
as well and remove the header in there.
Here is a solution with handle_errors
:
handle_errors {
@429
header {
-Server
}
respond @429 "The service cannot be reached. Please wait a while!"
}
In our caddy file we remove the server header with
-Server
. However when plugin returns a 429 error, it also adds back theServer
header not respecting the config. How can we prevent this?