Skip to content

Commit

Permalink
Merge pull request #172 from voidberg/master
Browse files Browse the repository at this point in the history
POST fails when the parameters are too long.
  • Loading branch information
nicolasembleton committed Feb 20, 2016
2 parents a69e43e + 2a57e78 commit 492937b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/solr.js
Original file line number Diff line number Diff line change
Expand Up @@ -674,9 +674,9 @@ Client.prototype.post = function(handler,query,callback){
var pathArray;

if(handler != 'admin/collections'){
pathArray = [this.options.path,this.options.core,handler + '?' + parameters + '&wt=json'];
pathArray = [this.options.path,this.options.core,handler + '?wt=json'];
} else {
pathArray = [this.options.path,handler + '?' + parameters + '&wt=json'];
pathArray = [this.options.path,handler + '?wt=json'];
}

var fullPath = pathArray.filter(function(element){
Expand Down

0 comments on commit 492937b

Please sign in to comment.