Return-Path: Delivered-To: apmail-incubator-couchdb-commits-archive@locus.apache.org Received: (qmail 23746 invoked from network); 8 Sep 2008 14:50:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Sep 2008 14:50:49 -0000 Received: (qmail 94356 invoked by uid 500); 8 Sep 2008 14:50:46 -0000 Delivered-To: apmail-incubator-couchdb-commits-archive@incubator.apache.org Received: (qmail 94336 invoked by uid 500); 8 Sep 2008 14:50:46 -0000 Mailing-List: contact couchdb-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-commits@incubator.apache.org Received: (qmail 94327 invoked by uid 99); 8 Sep 2008 14:50:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2008 07:50:46 -0700 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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2008 14:49:56 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2A914238899B; Mon, 8 Sep 2008 07:49:58 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r693115 - /incubator/couchdb/trunk/src/couchdb/couch_httpd.erl Date: Mon, 08 Sep 2008 14:49:56 -0000 To: couchdb-commits@incubator.apache.org From: cmlenz@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080908144958.2A914238899B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: cmlenz Date: Mon Sep 8 07:49:55 2008 New Revision: 693115 URL: http://svn.apache.org/viewvc?rev=693115&view=rev Log: Fix retrieval of specific document revisions, which needed to be updated for the internal change to binaries. Modified: incubator/couchdb/trunk/src/couchdb/couch_httpd.erl Modified: incubator/couchdb/trunk/src/couchdb/couch_httpd.erl URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/src/couchdb/couch_httpd.erl?rev=693115&r1=693114&r2=693115&view=diff ============================================================================== --- incubator/couchdb/trunk/src/couchdb/couch_httpd.erl (original) +++ incubator/couchdb/trunk/src/couchdb/couch_httpd.erl Mon Sep 8 07:49:55 2008 @@ -88,12 +88,13 @@ % for the path, use the raw path with the query string and fragment % removed, but URL quoting left intact - {Path, _, _} = mochiweb_util:urlsplit_path(Req:get(raw_path)), + {Path, QueryString, _} = mochiweb_util:urlsplit_path(Req:get(raw_path)), - ?LOG_DEBUG("~p ~s ~p~nHeaders: ~p", [ + ?LOG_DEBUG("~p ~s ~p~nQuery String: ~p~nHeaders: ~p", [ Req:get(method), Path, Req:get(version), + QueryString, mochiweb_headers:to_list(Req:get(headers)) ]), @@ -1057,7 +1058,7 @@ Options = [deleted_conflicts | Args#doc_query_args.options], Args#doc_query_args{options=Options}; {"rev", Rev} -> - Args#doc_query_args{rev=Rev}; + Args#doc_query_args{rev=list_to_binary(Rev)}; {"open_revs", "all"} -> Args#doc_query_args{open_revs=all}; {"open_revs", RevsJsonStr} ->