Hello,

Please, see
http://mina.apache.org/report/trunk/xref/org/apache/mina/example/httpserver/codec/HttpRequestDecoder.html#189

In case of GET query  the  code taking substring
url[1].substring(1, idx)

will cut the first letter, e.g. instead of http://yahoo.com
we may get ttp://yahoo.com (missing h)

See
http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html#substring%28int,%20int%29

So, 1 must be changed to 0

Antonio

Reply via email to