Actually: The method is in fact case-sensitive and must be POST in uppercase.
See RFC-2616 5.1.1 Method. So IMHO there is no need for equalsIgnoreCase or toLowerCase at all and "POST".equals(...) should just do it. Regards Felix Am 13.03.2013 um 08:51 schrieb Simone Tripodi: >> It would be safer to use equalsIgnoreCase(), for two reasons: >> - POST_METHOD case is then irrelevant (methods are usually shown as >> uppercase) >> - toLowerCase() is Locale-dependent. > > +1 and it would be even faster in therms of complexity - I already > voted to the issue you filled, are you going to take care of it or I > can pick it up and resolve? > TIA! > -Simo > > http://people.apache.org/~simonetripodi/ > http://simonetripodi.livejournal.com/ > http://twitter.com/simonetripodi > http://www.99soft.org/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Felix Meschberger | Principal Scientist | Adobe --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
