From 47911f0b84cca845ace312a12851af6adb67bc09 Mon Sep 17 00:00:00 2001 From: Anshum Gupta Date: Fri, 15 May 2015 06:11:05 +0000 Subject: [PATCH] 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 --- solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java b/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java index 00e6b102f34..3434f2902ac 100644 --- a/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java +++ b/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java @@ -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;