Skip to content

Incorrect CURL Syntax on "Design Documents" page #427

@JohnMcW

Description

@JohnMcW

curl -X POST http://127.0.0.1:5984/basic -d '{}'

Gives error:

{"error":"bad_content_type","reason":"Content-Type must be application/json"}

Should be:

curl -X POST http://127.0.0.1:5984/basic -d '{}' -H"Content-Type: application/json"

EDIT - using CouchDB v0.11.0 on Debian Squeeze

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