You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by be...@apache.org on 2014/02/10 21:05:50 UTC

[50/50] couch commit: updated refs/remotes/origin/import to 09c6556

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 <pa...@gmail.com>
Authored: Thu Feb 6 22:52:03 2014 -0600
Committer: Paul J. Davis <pa...@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;
     }