Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 24126 invoked from network); 3 Aug 2010 21:04:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Aug 2010 21:04:43 -0000 Received: (qmail 41928 invoked by uid 500); 3 Aug 2010 21:04:42 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 41871 invoked by uid 500); 3 Aug 2010 21:04:42 -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 41863 invoked by uid 99); 3 Aug 2010 21:04:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Aug 2010 21:04:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Aug 2010 21:04:39 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o73L4IEq019694 for ; Tue, 3 Aug 2010 21:04:18 GMT Message-ID: <17123351.145451280869458061.JavaMail.jira@thor> Date: Tue, 3 Aug 2010 17:04:18 -0400 (EDT) From: "Filipe Manana (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-842) Add JSON POST support to /_session In-Reply-To: <28836511.144801280868136332.JavaMail.jira@thor> 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-842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12895040#action_12895040 ] Filipe Manana commented on COUCHDB-842: --------------------------------------- Hi Jonathan, The patch looks good. However, one thing it must have is a test (look into share/www/script/tests/*.js) I would also prefer if: - it uses the macro ?b2l instead of binary_to_list/1 (makes code more readable) - it uses macro ?JSON_DECODE instead of couch_util:json_decode/1 Can you do it? cheers > Add JSON POST support to /_session > ---------------------------------- > > Key: COUCHDB-842 > URL: https://issues.apache.org/jira/browse/COUCHDB-842 > Project: CouchDB > Issue Type: Improvement > Components: HTTP Interface > Affects Versions: 1.0 > Reporter: Jonathan D. Knezek > Priority: Minor > Attachments: 0001-Add-JSON-POST-support-to-_session.patch > > > With this patch the /_session POST handler will accept application/json content in the format of {"name":"myname","password":"mypass"} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.