[ 
https://issues.apache.org/jira/browse/COUCHDB-947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932532#action_12932532
 ] 

Filippo Fadda commented on COUCHDB-947:
---------------------------------------

Good point Jan, I agree. Maybe we should use same approch for the many APIs 
that actually are using POST method. For example "/_replicate", "/_compact", 
"/_view_cleanup", etc.: all of them are time consuming processes that we can 
secure in some way. I think all those functions must use the trick of 
"Content-Type: application/json", or better, I suggest to use a well defined 
and documented custom header.
I can make a list of all those "special" functions.

> /_restart API requires "Content-Type: application/json"
> -------------------------------------------------------
>
>                 Key: COUCHDB-947
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-947
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 1.1, 1.2
>         Environment: Mac OS X 10.6.5
>            Reporter: Filippo Fadda
>             Fix For: 1.0.1, 1.1, 1.2
>
>
> The "/_restart" API requires "Content-Type: application/json" header. This is 
> not coherent because the API doesn't need parameters to be passed using JSON.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to