Optimize DefaultHttpHeaders.contains(...)

This commit is contained in:
Norman Maurer 2013-11-24 14:40:25 +01:00
parent da84afe9cc
commit 80f72a8270

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 {