couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r813803 - /couchdb/trunk/src/couchdb/couch_httpd_oauth.erl
Date Fri, 11 Sep 2009 12:30:53 GMT
Author: jan
Date: Fri Sep 11 12:30:52 2009
New Revision: 813803

URL: http://svn.apache.org/viewvc?rev=813803&view=rev
Log:
fix oauth access to design documents, patch by Jason Davies

Modified:
    couchdb/trunk/src/couchdb/couch_httpd_oauth.erl

Modified: couchdb/trunk/src/couchdb/couch_httpd_oauth.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_oauth.erl?rev=813803&r1=813802&r2=813803&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_oauth.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_oauth.erl Fri Sep 11 12:30:52 2009
@@ -144,7 +144,7 @@
                             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



Mime
View raw message