You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Samuel Tardieu (JIRA)" <ji...@apache.org> on 2015/04/27 17:36:39 UTC

[jira] [Created] (COUCHDB-2676) DELETE of a database returns JSON answer with type text/plain

Samuel Tardieu created COUCHDB-2676:
---------------------------------------

             Summary: DELETE of a database returns JSON answer with type text/plain
                 Key: COUCHDB-2676
                 URL: https://issues.apache.org/jira/browse/COUCHDB-2676
             Project: CouchDB
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: HTTP Interface
            Reporter: Samuel Tardieu


DELETE should return its response with a "application/json" MIME type.

{code}
% curl -v -X DELETE http://localhost:5984/test 
*   Trying ::1...
* Connected to localhost (::1) port 5984 (#0)
> DELETE /test HTTP/1.1
> Host: localhost:5984
> User-Agent: curl/7.42.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< Server: CouchDB/1.6.1 (Erlang OTP/17)
< Date: Mon, 27 Apr 2015 15:30:14 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 12
< Cache-Control: must-revalidate
< 
{"ok":true}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)