HTTP method should be case sensitive (RFC-2616 Sec. 5.1.1)
This commit is contained in:
parent
d9090ecb1b
commit
b0db3a04aa
@ -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