use cloned params passed to submit to avoid concurrent modification exception

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@666936 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2008-06-12 00:53:45 +00:00
parent 4d11b2c89a
commit 423731edd0
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ class HttpCommComponent {
SolrServer server = new CommonsHttpSolrServer(url, client);
// SolrRequest req = new QueryRequest(SolrRequest.METHOD.POST, "/select");
// use generic request to avoid extra processing of queries
QueryRequest req = new QueryRequest(sreq.params);
QueryRequest req = new QueryRequest(params);
req.setMethod(SolrRequest.METHOD.POST);
req.setResponseParser(new BinaryResponseParser()); // this sets the wt param
// srsp.rsp = server.request(req);