aio-libs / aio-libs/aiohttp-debugtoolbar

Plain text output for command line user agents

未关闭
#88 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
202
派生
29
PR 合并指标
30 天内没有已合并 PR

描述

I've just been building a restful API and am testing it with curl.

I have debugtoolbar enabled and 500 errors come through as a full web page which isn't at all easy to read.

The obvious solution is to disable debugtoolbar but it would still be nice to show plain text output for obvious CLI requests eg. `curl`, `wget`, `httpie` in case people use curl with dbtb switched on.

Alternatively there could be a white list of browser user-agents to show HTML response for or use `content-type`, but that all seems error prone.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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