From d80f6bffad9a88019f85c0f42446dd201f125aa1 Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Mon, 8 Sep 2008 14:49:55 +0000 Subject: Fix retrieval of specific document revisions, which needed to be updated for the internal change to binaries. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@693115 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_httpd.erl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl index e30f028f..c745fdb8 100644 --- a/src/couchdb/couch_httpd.erl +++ b/src/couchdb/couch_httpd.erl @@ -88,12 +88,13 @@ handle_request(Req, DocumentRoot) -> % 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 @@ parse_doc_query(Req) -> 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} -> -- cgit v1.2.3