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 4E15118CBF for ; Tue, 26 May 2015 15:02:49 +0000 (UTC) Received: (qmail 80045 invoked by uid 500); 26 May 2015 15:02:49 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 79980 invoked by uid 500); 26 May 2015 15:02:49 -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 79969 invoked by uid 99); 26 May 2015 15:02:48 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 May 2015 15:02:48 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A52D8DFFC0; Tue, 26 May 2015 15:02:48 +0000 (UTC) From: arturmazurek To: dev@couchdb.apache.org Reply-To: dev@couchdb.apache.org Message-ID: Subject: [GitHub] couchdb-couch pull request: Fix duplicated Content-Type for show/u... Content-Type: text/plain Date: Tue, 26 May 2015 15:02:48 +0000 (UTC) GitHub user arturmazurek opened a pull request: https://github.com/apache/couchdb-couch/pull/55 Fix duplicated Content-Type for show/update functions When a show/update function returned data it added a "Content-Type: application/json" header by itself. Then couch_httpd added some default headers (including a yet another "application/json" one). This diff will add default chttpd headers only when same headers are not yet present in the response. COUCHDB-1876 You can merge this pull request into a Git repository by running: $ git pull https://github.com/arturmazurek/couchdb-couch 1876-fix-duplicate-content-type Alternatively you can review and apply these changes as the patch at: https://github.com/apache/couchdb-couch/pull/55.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #55 ---- commit 0e85057a256635fff4a21cbe9368188a32c46650 Author: Artur Mazurek Date: 2015-05-25T14:19:53Z Fix duplicated Content-Type for show/update functions When a show/update function returned data it added a "Content-Type: application/json" header by itself. Then couch_httpd added some default headers (including a yet another "application/json" one). This diff will add default chttpd headers only when same headers are not yet present in the response. COUCHDB-1876 ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---