summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_httpd.erl
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2008-09-08 14:49:55 +0000
committerChristopher Lenz <cmlenz@apache.org>2008-09-08 14:49:55 +0000
commitd80f6bffad9a88019f85c0f42446dd201f125aa1 (patch)
tree0daf25edfa9d36edfbe6657d9a6e911ec0ab8e67 /src/couchdb/couch_httpd.erl
parenta75a39b2a47f3275f198cffa932a78bd70e1cac4 (diff)
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
Diffstat (limited to 'src/couchdb/couch_httpd.erl')
-rw-r--r--src/couchdb/couch_httpd.erl7
1 files changed, 4 insertions, 3 deletions
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} ->