This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
commit 4955babe2adcbe84d6e6fdd435ca357f5a5b66f2 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sun Jul 20 11:24:30 2025 -0400 Use StringUtils.toRootUpperCase --- .../src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java index cc0587871..eeeebdf83 100644 --- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java +++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java @@ -45,6 +45,7 @@ import java.util.concurrent.TimeUnit; import javax.net.ssl.SSLContext; +import org.apache.commons.lang3.StringUtils; import org.apache.hc.client5.http.utils.DateUtils; import org.apache.hc.core5.http.ContentType; import org.apache.hc.core5.http.EndpointDetails; @@ -94,7 +95,7 @@ public final class NHttpFileServer { throws HttpException, IOException { println("Handling " + message + " in " + context); final HttpRequest request = message.getHead(); - final String method = request.getMethod().toUpperCase(Locale.ROOT); + final String method = StringUtils.toRootUpperCase(request.getMethod()); if (!method.equals("GET") && !method.equals("HEAD") && !method.equals("POST")) { throw new MethodNotSupportedException(method + " method not supported"); }