Skip to content
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...
1 parent ac51093 commit 2411aa3b1adcdeb6d00f36470a702840d21cde21 @jlank jlank committed Feb 8, 2013
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;

0 comments on commit 2411aa3

Please sign in to comment.
Something went wrong with that request. Please try again.