Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added querystring option to request method so query string parameters…

… can be specified for a custom request (such as _uuids?count=10)
  • Loading branch information...
commit 2411aa3b1adcdeb6d00f36470a702840d21cde21 1 parent ac51093
@jlank jlank authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 nano.js
View
5 nano.js
@@ -167,6 +167,11 @@ module.exports = exports = nano = function database_module(cfg) {
}
}
+ // if there is a querystring append it after the path
+ if(opts.qs) {
+ req.uri += "?" + qs.stringify(opts.qs);
+ }
+
// prevent bugs where people set encoding when piping
if(opts.encoding !== undefined && callback) {
req.encoding = opts.encoding;
Please sign in to comment.
Something went wrong with that request. Please try again.