apex / apex/up

Explicit responses should bypass error pages

Đang mở
#697 3 bình luận 1 reaction 0 người được giao Xem trên GitHub
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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.