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:
commit
8c659331e3
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user