Permalink
Browse files

support for retrieving binary data

  • Loading branch information...
1 parent 54c427e commit bb087a46bf930c4c814a427720df1e93e789d785 Nathan committed Oct 5, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/couchdb/http_client.js
@@ -46,6 +46,8 @@ HttpClient.prototype = (function() {
var results = req.responseText;
if (opts.dataType && opts.dataType.toLowerCase() === "json"){
results = JSON.parse(results);
+ } else if (opts.dataType && opts.dataType.toLowerCase() == "raw") {
+ results = req.responseRaw;
}
opts.success(results);
} else if (opts.error) {

0 comments on commit bb087a4

Please sign in to comment.