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:
Anshum Gupta 2015-05-15 06:11:05 +00:00
parent 0ba7aca779
commit 47911f0b84
1 changed files with 1 additions and 1 deletions

View File

@ -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;