Change loop that don't loop for "if" conditions.

This commit is contained in:
Arturo Bernal 2021-10-17 15:46:36 +02:00 committed by Oleg Kalnichevski
parent 012429391c
commit 277c7228c3
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ class ResponseCachingPolicy {
private boolean from1_0Origin(final HttpResponse response) {
final Iterator<HeaderElement> it = MessageSupport.iterate(response, HeaderConstants.VIA);
while (it.hasNext()) {
if (it.hasNext()) {
final HeaderElement elt = it.next();
final String proto = elt.toString().split("\\s")[0];
if (proto.contains("/")) {