Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added path option

  • Loading branch information...
commit 06aa48ac635cc7782136af7c1a631d9408df1bb5 1 parent af7f593
@DamonOehlman DamonOehlman authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/PJsonCouch.js
View
3  lib/PJsonCouch.js
@@ -196,6 +196,7 @@ var PJsonCouch = function (options) {
// initialise options defaults
options.headers = options.headers || {};
+ options.path = options.path || '';
if (this instanceof PJsonCouch) {
@@ -526,7 +527,7 @@ var PJsonCouch = function (options) {
this.buildRequest = function (method, url) {
if (!url.db && !url.serverAction) url.db = myDB;
var qsparams = Utils.smartQueryString(url.args);
- options.path = Utils.decodeGetData(url);
+ options.path = options.path + Utils.decodeGetData(url);
options.method = method;
options.path = (qsparams === "") ? options.path : options.path + "?" + qsparams;
Please sign in to comment.
Something went wrong with that request. Please try again.