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 7562F6107 for ; Mon, 4 Jul 2011 15:01:48 +0000 (UTC) Received: (qmail 25276 invoked by uid 500); 4 Jul 2011 15:01:47 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 25222 invoked by uid 500); 4 Jul 2011 15:01:46 -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 25214 invoked by uid 99); 4 Jul 2011 15:01:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2011 15:01:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2011 15:01:44 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E13B636D70 for ; Mon, 4 Jul 2011 15:01:22 +0000 (UTC) Date: Mon, 4 Jul 2011 15:01:22 +0000 (UTC) From: "Marcos Zanona (JIRA)" To: dev@couchdb.apache.org Message-ID: <1131163822.2009.1309791682918.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <185809767.10839.1301044925844.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1101) Headers from update handler not returned when a document is created/modified MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13059468#comment-13059468 ] Marcos Zanona commented on COUCHDB-1101: ---------------------------------------- Same thing here, this makes the update handler useless for lots of different situations. Since if you return null it won't update/create a document at all. > Headers from update handler not returned when a document is created/modified > ---------------------------------------------------------------------------- > > Key: COUCHDB-1101 > URL: https://issues.apache.org/jira/browse/COUCHDB-1101 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Affects Versions: 1.0.2 > Environment: Fedora 14, 4 Cores, 4 GB RAM > Reporter: Jiri Sedlacek > Priority: Minor > > I expect from this update handler to return "X-my-header" header in response. It does not. > function(doc,req) { > var resp = { "headers" : { "X-my-header": "application" } , "body": "" }; > return [{_id:req.uuid}, resp]; > } > Changing the return to: > return [null, resp]; > helps. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira