Explicit responses should bypass error pages
Đang mở
Feedback Wanted
UX
- Ngôn ngữ chính
- Go
- Star
- 8.8k
- Fork
- 383
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.