commit | e514c52c17999194650eca5d702d0c79b1f45a70 | [log] [tgz] |
---|---|---|
author | Emmanuel Lecharny <elecharny@apache.org> | Mon Mar 02 18:50:28 2009 +0000 |
committer | Emmanuel Lecharny <elecharny@apache.org> | Mon Mar 02 18:50:28 2009 +0000 |
tree | 5dd3c722f48c2e361091a9a7e2cdbaa975e70ab8 | |
parent | b9aeb5d1db58be661115126f1b51cc3718522221 [diff] |
Added a comment for DIRMINA-666 git-svn-id: https://svn.apache.org/repos/asf/mina/branches/1.1@749411 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/example/src/main/java/org/apache/mina/example/httpserver/codec/HttpRequestDecoder.java b/example/src/main/java/org/apache/mina/example/httpserver/codec/HttpRequestDecoder.java index 5c5f284..c18ff5f 100644 --- a/example/src/main/java/org/apache/mina/example/httpserver/codec/HttpRequestDecoder.java +++ b/example/src/main/java/org/apache/mina/example/httpserver/codec/HttpRequestDecoder.java
@@ -107,6 +107,11 @@ return false; for (int i = 0; i < last; i++) { boolean found = false; + + // The Content-Length header is compared with + // a case-sensitive value. This portion of the + // code won't work if the client send a header + // with a different case. for (int j = 0; j < CONTENT_LENGTH.length; j++) { if (in.get(i + j) != CONTENT_LENGTH[j]) { found = false;