You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2014/05/28 17:51:13 UTC

svn commit: r1598051 - in /httpcomponents/httpcore/trunk/httpcore/src: examples/org/apache/http/examples/ElementalHttpServer.java main/java/org/apache/http/impl/bootstrap/package-info.java

Author: olegk
Date: Wed May 28 15:51:13 2014
New Revision: 1598051

URL: http://svn.apache.org/r1598051
Log:
Cleanups

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalHttpServer.java
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/bootstrap/package-info.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalHttpServer.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalHttpServer.java?rev=1598051&r1=1598050&r2=1598051&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalHttpServer.java (original)
+++ httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalHttpServer.java Wed May 28 15:51:13 2014
@@ -150,7 +150,7 @@ public class ElementalHttpServer {
                 final HttpResponse response,
                 final HttpContext context) throws HttpException, IOException {
 
-            String method = request.getRequestLine().getMethod().toUpperCase(Locale.ENGLISH);
+            String method = request.getRequestLine().getMethod().toUpperCase(Locale.ROOT);
             if (!method.equals("GET") && !method.equals("HEAD") && !method.equals("POST")) {
                 throw new MethodNotSupportedException(method + " method not supported");
             }

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/bootstrap/package-info.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/bootstrap/package-info.java?rev=1598051&r1=1598050&r2=1598051&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/bootstrap/package-info.java (original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/bootstrap/package-info.java Wed May 28 15:51:13 2014
@@ -26,6 +26,6 @@
  */
 
 /**
- * Embedded server bootstrap.
+ * Embedded server and server bootstrap.
  */
 package org.apache.http.impl.bootstrap;