mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Fix HttpHeaders.setHost() to remove the header
See gh-33716
This commit is contained in:
@@ -1136,7 +1136,7 @@ public class HttpHeaders implements MultiValueMap<String, String>, Serializable
|
||||
set(HOST, value);
|
||||
}
|
||||
else {
|
||||
remove(HOST, null);
|
||||
remove(HOST);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user