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

Jan Lehnardt commented on COUCHDB-947:
--------------------------------------

I take my previous statement back and pronounce the opposite.

The reason is any website could restart your local CouchDB (or any CouchDB 
under a well known URL) by sending a form submit to that URL. By requiring the 
Content-Type to be application/json, we ensure an HTML form can't do this.

It's inconvenient, but required. Sorry.

> /_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