Merge pull request #704 from jpinner/case_sensitive_method

HTTP method should be case sensitive (RFC-2616 Sec. 5.1.1)
This commit is contained in:
Norman Maurer 2012-11-02 00:30:40 -07:00
commit 8c659331e3

View File

@ -109,7 +109,7 @@ public class HttpMethod implements Comparable<HttpMethod> {
throw new NullPointerException("name");
}
name = name.trim().toUpperCase();
name = name.trim();
if (name.length() == 0) {
throw new IllegalArgumentException("empty name");
}
@ -136,7 +136,7 @@ public class HttpMethod implements Comparable<HttpMethod> {
throw new NullPointerException("name");
}
name = name.trim().toUpperCase();
name = name.trim();
if (name.length() == 0) {
throw new IllegalArgumentException("empty name");
}