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 5276011AB4 for ; Wed, 25 Jun 2014 00:07:26 +0000 (UTC) Received: (qmail 66930 invoked by uid 500); 25 Jun 2014 00:07:25 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 66870 invoked by uid 500); 25 Jun 2014 00:07:25 -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 66644 invoked by uid 99); 25 Jun 2014 00:07:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2014 00:07:25 +0000 Date: Wed, 25 Jun 2014 00:07:25 +0000 (UTC) From: "Kaj Nielsen (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COUCHDB-2258) CouchDB 1.6.0 returns wrong Content-Type 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-2258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14042874#comment-14042874 ] Kaj Nielsen commented on COUCHDB-2258: -------------------------------------- A practical implication: Browser extensions that renders application/json hierarchically instead of the default rendering (plain text view) ceases to function. But that's really besides the point, the point is technical correctness (the best kind of correctness)... > CouchDB 1.6.0 returns wrong Content-Type > ---------------------------------------- > > Key: COUCHDB-2258 > URL: https://issues.apache.org/jira/browse/COUCHDB-2258 > Project: CouchDB > Issue Type: Bug > Security Level: public(Regular issues) > Components: HTTP Interface > Reporter: Kaj Nielsen > > CouchDB returns JSON documents. > So the Content-Type set by CouchDB should be "application/json". > Instead: > > GET /db/doc HTTP/1.1 > > Host: localhost:5984 > > > < HTTP/1.1 200 OK > < Server: CouchDB/1.6.0 (Erlang OTP/R15B01) > < ETag: "167-37f82fdbfdc49d38b1c66815deb1e338" > < Date: Tue, 24 Jun 2014 22:26:39 GMT > < Content-Type: text/plain; charset=utf-8 > < Content-Length: 649 > < Cache-Control: must-revalidate > < > ... > As seen above, CouchDB returns text/plain. -- This message was sent by Atlassian JIRA (v6.2#6252)