Skip to content

Plain text output for command line user agents #88

Description

@samuelcolvin

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions