Fix HttpHeaders.setHost() to remove the header

See gh-33716
This commit is contained in:
Ilya Serkov
2024-10-16 11:53:05 +03:00
committed by rstoyanchev
parent 9252e741e1
commit 657e002ed7
2 changed files with 10 additions and 1 deletions

View File

@@ -1136,7 +1136,7 @@ public class HttpHeaders implements MultiValueMap<String, String>, Serializable
set(HOST, value);
}
else {
remove(HOST, null);
remove(HOST);
}
}