mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-19 14:27:10 +00:00
Spring 7 WebClient Compatibility (#22030)
* Update Spring Boot dependency for WebClient * Adapt WebClient ApiClient to change in HttpHeaders with Spring 7 --------- Co-authored-by: Timo Schwarz <timo.schwarz@bredex.de>
This commit is contained in:
@@ -326,10 +326,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
* @return ApiClient this client
|
||||
*/
|
||||
public ApiClient addDefaultHeader(String name, String value) {
|
||||
if (defaultHeaders.containsKey(name)) {
|
||||
defaultHeaders.remove(name);
|
||||
}
|
||||
defaultHeaders.add(name, value);
|
||||
defaultHeaders.set(name, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user