-
Notifications
You must be signed in to change notification settings - Fork 908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webserver.cc: try to pass exception text with 500 errors #14670
Conversation
fixes PowerDNS#14637 -if- the client sends `Accept: application/json`
Pull Request Test Coverage Report for Build 10850324716Details
💛 - Coveralls |
A potential issue here is that the exception message might reveal info we do not want to share. |
to somebody who has an API token, right? I'll give it a good ponder, it's a good question (yours, not mine :) ) |
The thing I'm vaguely concerned about is clients starting to parse the error messages. But I hope its clear that they are not contractual. |
I actually intended to not have JSON, or perhaps |
For content checks etc I'm less concerned; IOW I hope its easier to preserve the messages there. |
after pondering over the weekend, this does not worry me |
Agreed, it's build into my system to be weary about these things, but in this case it's ok. |
Short description
fixes #14637 -if- the client sends
Accept: application/json
Checklist
I have: