Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2865010A27 for ; Wed, 11 Dec 2013 14:47:17 +0000 (UTC) Received: (qmail 46277 invoked by uid 500); 11 Dec 2013 14:47:16 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 45590 invoked by uid 500); 11 Dec 2013 14:47:11 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 45548 invoked by uid 99); 11 Dec 2013 14:47:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Dec 2013 14:47:07 +0000 Date: Wed, 11 Dec 2013 14:47:07 +0000 (UTC) From: "Benjamin Young (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COUCHDB-348) / should redirect to a human readable page when accessed from a browser MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13845452#comment-13845452 ] Benjamin Young commented on COUCHDB-348: ---------------------------------------- So clients can be changed far more easily than browser. Additionally, we can do some User-Agent string sniffing if it comes to that. curl sends {{Accept: */*}} and {{User-Agent: curl/7.30.0}} fwiw. Browser sniffing is an old (dark) art, and seems it wouldn't be terrible to tackle that and default to the {{application/json}} when we can't figure it out. Certainly a note about the change with a minor (or major) point release along with contacting client authors directly and even doing a bit of testing/documenting/pull-requesting would be needed for the smoothest transition. It beats not doing it. > / 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 > Assignee: Robert Newson > Attachments: COUCHDB_348_01.patch, COUCHDB_348_02.patch, COUCHDB_348_03.patch, encs.erl > > > 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 was sent by Atlassian JIRA (v6.1.4#6159)