[ 
https://issues.apache.org/jira/browse/COUCHDB-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

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.

Thanks.

> / should redirect to a human readable page when accessed from a browser
> -----------------------------------------------------------------------
>
>                 Key: COUCHDB-348
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-348
>             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.

Reply via email to