summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2009-09-11 12:30:52 +0000
committerJan Lehnardt <jan@apache.org>2009-09-11 12:30:52 +0000
commit773a23353b9101620ebb91183cb67240c17aa2c9 (patch)
tree2007c32478c36d96d1063773a0d349e9c05fbe1a
parentee29f0bacabd96e72d18a356d28a46cd677ccd3c (diff)
fix oauth access to design documents, patch by Jason Davies
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@813803 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/couchdb/couch_httpd_oauth.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd_oauth.erl b/src/couchdb/couch_httpd_oauth.erl
index ee79c797..3bfe52e7 100644
--- a/src/couchdb/couch_httpd_oauth.erl
+++ b/src/couchdb/couch_httpd_oauth.erl
@@ -144,7 +144,7 @@ serve_oauth(#httpd{mochi_req=MochiReq}=Req, Fun, FailSilently) ->
couch_httpd:send_error(Req, 400, <<"invalid_consumer">>, <<"Invalid consumer (key or signature method).">>);
Consumer ->
Signature = proplists:get_value("oauth_signature", Params),
- URL = couch_httpd:absolute_uri(Req, MochiReq:get(path)),
+ URL = couch_httpd:absolute_uri(Req, MochiReq:get(raw_path)),
Fun(URL, proplists:delete("oauth_signature", Params),
Consumer, Signature)
end