apex / apex/up

Explicit responses should bypass error pages

未关闭
#697 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。