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 摘要。