Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
my name is BigCouch
Browse files Browse the repository at this point in the history
  • Loading branch information
kocolosk committed Aug 27, 2010
1 parent 97aebf2 commit da303d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## chttpd

chttpd is a cluster-aware http layer for [CouchDB][1]. It is used in [cloudant-dbcore][2] as the http front-end.
chttpd is a cluster-aware http layer for [CouchDB][1]. It is used in [BigCouch][2] as the http front-end.

### Getting Started
Dependencies:
Expand All @@ -17,7 +17,7 @@ Build with rebar:
* [info@cloudant.com][5]

[1]: http://couchdb.apache.org
[2]: http://github.com/cloudant/dbcore
[2]: http://github.com/cloudant/bigcouch
[3]: http://www.apache.org/licenses/LICENSE-2.0.html
[4]: http://cloudant.com
[5]: mailto:info@cloudant.com
6 changes: 3 additions & 3 deletions src/chttpd_misc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ handle_welcome_req(#httpd{method='GET'}=Req, WelcomeMessage) ->
send_json(Req, {[
{couchdb, WelcomeMessage},
{version, list_to_binary(couch:version())},
{dbcore, get_version()}
{bigcouch, get_version()}
]});
handle_welcome_req(Req, _) ->
send_method_not_allowed(Req, "GET,HEAD").

get_version() ->
Releases = release_handler:which_releases(),
Version = case [V || {"dbcore", V, _, current} <- Releases] of
Version = case [V || {"bigcouch", V, _, current} <- Releases] of
[] ->
case [V || {"dbcore", V, _, permanent} <- Releases] of
case [V || {"bigcouch", V, _, permanent} <- Releases] of
[] ->
"dev";
[Permanent] ->
Expand Down

0 comments on commit da303d2

Please sign in to comment.