Explicit responses should bypass error pages
未關閉
Feedback Wanted
UX
- 主要語言
- Go
- 星號
- 8.8k
- 分支
- 383
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Currently if `text/html` is accepted, Up will serve the error page. It seems common for people to `fetch()` or `curl` without explicitly setting `Accept: application/json` or similar, resulting in the HTML which can be confusing.
We could disable error pages by default, or maybe drop content negotiation and assume non-text/plain responses are intentional, something like that.
Note to self: at least document Accept usage
貢獻指南
評估
這個 Issue 還沒有評估資料。