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 1488810364 for ; Sun, 15 Dec 2013 02:21:08 +0000 (UTC) Received: (qmail 19402 invoked by uid 500); 15 Dec 2013 02:21:07 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 19327 invoked by uid 500); 15 Dec 2013 02:21:07 -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 19316 invoked by uid 99); 15 Dec 2013 02:21:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Dec 2013 02:21:07 +0000 Date: Sun, 15 Dec 2013 02:21:07 +0000 (UTC) From: "zmhassan (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COUCHDB-1876) Duplicate application/json in response Content-Type for show/update functions 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-1876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13848513#comment-13848513 ] zmhassan commented on COUCHDB-1876: ----------------------------------- Part of debugging is that I should be able to reproduce the bug. Can you paste in the json that you store in the design-doc here so I can test. Run the following command and paste the json in the comment . curl http://localhost:5984/dev-task/_design/task > task.json > Duplicate application/json in response Content-Type for show/update functions > ----------------------------------------------------------------------------- > > Key: COUCHDB-1876 > URL: https://issues.apache.org/jira/browse/COUCHDB-1876 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Reporter: Alexander Shorin > Assignee: zmhassan > Priority: Minor > > Show function: > {code} > function(doc,req){ > return {"json": true} > } > {code} > Curl command: > {code} > curl -v http://localhost:5984/db/_design/test/_show/json -H "Accept: application/json" > > * Adding handle: conn: 0x24d8480 > * Adding handle: send: 0 > * Adding handle: recv: 0 > * Curl_addHandleToPipeline: length: 1 > * - Conn 0 (0x24d8480) send_pipe: 1, recv_pipe: 0 > * About to connect() to localhost port 5984 (#0) > * Trying 127.0.0.1... > * Connected to localhost (127.0.0.1) port 5984 (#0) > > GET /db/_design/test/_show/json HTTP/1.1 > > User-Agent: curl/7.31.0 > > Host: localhost:5984 > > Accept: application/json > > > < HTTP/1.1 200 OK > < Vary: Accept > * Server CouchDB/1.4.0+build.c843cef (Erlang OTP/R16B) is not blacklisted > < Server: CouchDB/1.4.0+build.c843cef (Erlang OTP/R16B) > < Etag: "AW5C2CXR0TS88IZ5N8ZIY995B" > < Date: Wed, 21 Aug 2013 16:06:00 GMT > < Content-Type: application/json, application/json > < Content-Length: 7 > < Cache-Control: must-revalidate > < > "true" > * Connection #0 to host localhost left intact > {code} > Note line in response with: {code}Content-Type: application/json, application/json{code} > While it's ok for HTTP, I believe there should be only one "application/json" MIME type. -- This message was sent by Atlassian JIRA (v6.1.4#6159)