couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beno...@apache.org
Subject [50/50] couch commit: updated refs/remotes/origin/import to 09c6556
Date Mon, 10 Feb 2014 20:05:50 GMT
Make sure and save the default referer


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/09c65560
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/09c65560
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/09c65560

Branch: refs/remotes/origin/import
Commit: 09c6556049f9e19e3ec7152b59c1911f88e727f5
Parents: f8c2335
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Thu Feb 6 22:52:03 2014 -0600
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Thu Feb 6 22:52:03 2014 -0600

----------------------------------------------------------------------
 priv/couch_js/http.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/09c65560/priv/couch_js/http.c
----------------------------------------------------------------------
diff --git a/priv/couch_js/http.c b/priv/couch_js/http.c
index 767573f..c5d5e88 100644
--- a/priv/couch_js/http.c
+++ b/priv/couch_js/http.c
@@ -362,6 +362,7 @@ http_uri(JSContext* cx, JSObject* req, couch_args* args, jsval* uri_val)
     if (!args->uri_file) {
         uri_str = JS_InternString(cx, "http://localhost:15986/");
         *uri_val = STRING_TO_JSVAL(uri_str);
+        JS_SetReservedSlot(cx, req, 0, *uri_val);
         return JS_TRUE;
     }
 


Mime
View raw message