couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r693115 - /incubator/couchdb/trunk/src/couchdb/couch_httpd.erl
Date Mon, 08 Sep 2008 14:49:56 GMT
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} ->



Mime
View raw message