forked from OpenTSDB/opentsdb
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make all HTTP endpoints send return PNG-friendly error responses.
Similarly to the previous commit, error responses (say, 400, 404, 500), now honor the `png' query string parameter, which indicates that the client wants a PNG image as a response. This was only handled by /q, but is now automagically done for all endpoints. Among other things, this helps report proper error messages to pages that embed an image from the TSD without first doing an AJAX call to see if there's an error. Change-Id: Idb44d3ef78152cfb98c929e355c8f615f893b30f
- Loading branch information
Showing
2 changed files
with
75 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters