mirror of https://github.com/apache/lucene.git
SOLR-3301: Added Locale to param uppercasing
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1329634 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0080caf27a
commit
b91898b5df
|
@ -21,6 +21,7 @@ import java.io.File;
|
|||
import java.io.FileWriter;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
|
||||
import org.apache.solr.common.SolrException;
|
||||
import org.apache.solr.common.params.CommonParams;
|
||||
|
@ -60,7 +61,7 @@ public class PingRequestHandler extends RequestHandlerBase
|
|||
}
|
||||
else {
|
||||
try {
|
||||
action = ACTIONS.valueOf(actionParam.toUpperCase());
|
||||
action = ACTIONS.valueOf(actionParam.toUpperCase(Locale.ENGLISH));
|
||||
}
|
||||
catch (IllegalArgumentException iae){
|
||||
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
|
||||
|
|
Loading…
Reference in New Issue