You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/10/13 00:42:05 UTC
[2/2] couchdb-setup git commit: Return HTTP 200 on GET
Return HTTP 200 on GET
Project: http://git-wip-us.apache.org/repos/asf/couchdb-setup/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-setup/commit/747144ee
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-setup/tree/747144ee
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-setup/diff/747144ee
Branch: refs/heads/master
Commit: 747144ee259b1fe084ee041f783936a7ee1cf2de
Parents: d0a9b72
Author: Alexander Shorin <kx...@apache.org>
Authored: Mon Oct 12 18:09:29 2015 +0300
Committer: Alexander Shorin <kx...@apache.org>
Committed: Mon Oct 12 18:23:43 2015 +0300
----------------------------------------------------------------------
src/setup_httpd.erl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-setup/blob/747144ee/src/setup_httpd.erl
----------------------------------------------------------------------
diff --git a/src/setup_httpd.erl b/src/setup_httpd.erl
index f84112b..32c6104 100644
--- a/src/setup_httpd.erl
+++ b/src/setup_httpd.erl
@@ -31,13 +31,13 @@ handle_setup_req(#httpd{method='GET'}=Req) ->
ok = chttpd:verify_is_server_admin(Req),
case setup:is_cluster_enabled() of
no ->
- chttpd:send_json(Req, 201, {[{state, cluster_disabled}]});
+ chttpd:send_json(Req, 200, {[{state, cluster_disabled}]});
ok ->
case setup:has_cluster_system_dbs() of
no ->
- chttpd:send_json(Req, 201, {[{state, cluster_enabled}]});
+ chttpd:send_json(Req, 200, {[{state, cluster_enabled}]});
ok ->
- chttpd:send_json(Req, 201, {[{state, cluster_finished}]})
+ chttpd:send_json(Req, 200, {[{state, cluster_finished}]})
end
end.