Tags: ingvaldlorentzen/django-health-check
Tags
Improve accept header handling for unknown types (revsys#222) Add 406 response for if the requested content type is not supported. Add more tests to verify correct content type negotiation.
Allow more valid accept headers (revsys#221) * Allow any amount of optional whitespace on either side of the semi-colon for parameters. * Allow other parameters after the optional q-value. RFC 2616 says that the q comes first, which spares us needing to fully parse the list here. The list of characters comes from RFC 7230, section 3.2.6 ('visible US-ASCII characters, except delimiters'). * Allow more valid q-values. '[\d3]' is the range of digits or the digit 3, so we're only allowing a single decimal digit. RFC 2616 allows for up to three digits but no more after a zero, or up to three zeroes after a one. The new pattern is cumbersome, but should allow any decimal from 0 to 1 (inclusive), with up to three digits of precision.
Add format GET attribute to override response content type (revsys#216) * Add `format` GET attribute to override response content type. You can now use `?format=json` to override the content type specified in the request's `accept` header. * Add support for weighted `accept` header content type serving. Now weights the accept header are respecced. Also support for multiple content types has been added.
Add a NotImplementedError warning to celery health check (revsys#201) This can be triggered if the result backend isn't set which unfortunately took a long time for me to sort out because the error message was so ambiguous.
Add connection error exception for cache backend (revsys#195) * Add connection error exception for cache backend * remove exception catchall
Add support for warnings that do not error endpoints (revsys#193) Add a new concept of warnings and non-critical services. Both will not cause the template and JSON endpoint to response with a 500 status code but with a regular 200. This change is backwards compatible because the existing warnings are treated as errors by default. Close revsys#191
PreviousNext