Optimize DefaultHttpHeaders.contains(...)

This commit is contained in:
Norman Maurer 2013-11-24 14:40:25 +01:00
parent 8eb88b7889
commit 279e2e3cd2

View File

@ -294,7 +294,7 @@ public class DefaultHttpHeaders extends HttpHeaders {
while (e != null) {
if (e.hash == h && equalsIgnoreCase(name, e.key)) {
if (ignoreCaseValue) {
if (e.value.equalsIgnoreCase(value)) {
if (equalsIgnoreCase(e.value, value)) {
return true;
}
} else {