couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Hooker (JIRA)" <>
Subject [jira] Updated: (COUCHDB-348) / should redirect to a human readable page when accessed from a browser
Date Wed, 16 Dec 2009 09:44:18 GMT


Matthew Hooker updated COUCHDB-348:

    Attachment: COUCHDB_348_01.patch

I think this patch does what Chris described. I've tested it in firefox and curl, and I get
the expected results.

Not being super expert at either the CouchDB codebase or Erlang, I think this is sort of a
naive approach, and would appreciate some feedback.

It merely checks if the client is sending 'text/html' as part of the Accept header, and like
COUCHDB-234, it doesn't respect qvalues, so if the client can do both html and json, it will
get html.


> / should redirect to a human readable page when accessed from a browser
> -----------------------------------------------------------------------
>                 Key: COUCHDB-348
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>            Reporter: Chris Anderson
>             Fix For: 0.11
>         Attachments: COUCHDB_348_01.patch
> As more people are adopting CouchDB, the number of questions along the lines of "All
I see is {"couchdb":"Welcome","version":"0.10.0a773399"}, what now?"
> If this page redirected to /_utils/ (or maybe something more user-focussed) when the
accept headers included html, we could make the first-time user experience more palatable.
> There's some code in COUCHDB-234 that might be helpful here.

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

View raw message