Skip to content

Commit

Permalink
Add text and json fallback error handlers (#1937)
Browse files Browse the repository at this point in the history
* Add text and json fallback error handlers

* Add tests and auto-detect error fallback type
  • Loading branch information
ahopkins authored Sep 30, 2020
1 parent 0c4a9b1 commit 066df2c
Show file tree
Hide file tree
Showing 4 changed files with 393 additions and 93 deletions.
1 change: 1 addition & 0 deletions sanic/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"REAL_IP_HEADER": None,
"PROXIES_COUNT": None,
"FORWARDED_FOR_HEADER": "X-Forwarded-For",
"FALLBACK_ERROR_FORMAT": "html",
}


Expand Down
Loading

0 comments on commit 066df2c

Please sign in to comment.