Add text and json fallback error handlers (#1937)
* Add text and json fallback error handlers * Add tests and auto-detect error fallback type
This commit is contained in:
@@ -32,6 +32,7 @@ DEFAULT_CONFIG = {
|
||||
"REAL_IP_HEADER": None,
|
||||
"PROXIES_COUNT": None,
|
||||
"FORWARDED_FOR_HEADER": "X-Forwarded-For",
|
||||
"FALLBACK_ERROR_FORMAT": "html",
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user