mirror of https://github.com/apache/lucene.git
SOLR-7275: Setting requestType for context object in case of a /get request
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1679497 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0ba7aca779
commit
47911f0b84
|
@ -901,7 +901,7 @@ public class HttpSolrCall {
|
|||
|
||||
// Populate the request type if the request is select or update
|
||||
if(requestType == RequestType.UNKNOWN) {
|
||||
if(resource.startsWith("/select"))
|
||||
if(resource.startsWith("/select") || resource.startsWith("/get"))
|
||||
requestType = RequestType.READ;
|
||||
if(resource.startsWith("/update"))
|
||||
requestType = RequestType.WRITE;
|
||||
|
|
Loading…
Reference in New Issue