Skip to content

Commit 4955bab

Browse files
committed
Use StringUtils.toRootUpperCase
1 parent 3d6fc20 commit 4955bab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commons-vfs2/src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545

4646
import javax.net.ssl.SSLContext;
4747

48+
import org.apache.commons.lang3.StringUtils;
4849
import org.apache.hc.client5.http.utils.DateUtils;
4950
import org.apache.hc.core5.http.ContentType;
5051
import org.apache.hc.core5.http.EndpointDetails;
@@ -94,7 +95,7 @@ public void handle(final Message<HttpRequest, Void> message, final ResponseTrigg
9495
throws HttpException, IOException {
9596
println("Handling " + message + " in " + context);
9697
final HttpRequest request = message.getHead();
97-
final String method = request.getMethod().toUpperCase(Locale.ROOT);
98+
final String method = StringUtils.toRootUpperCase(request.getMethod());
9899
if (!method.equals("GET") && !method.equals("HEAD") && !method.equals("POST")) {
99100
throw new MethodNotSupportedException(method + " method not supported");
100101
}

0 commit comments

Comments
 (0)