mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-05 15:10:49 +00:00
- fix duplicate problem (#6981)
* - fix duplicate problem * style guide adjustment * replace tab with 4-space * replace tab with 4 -space
This commit is contained in:
parent
6476c0aa18
commit
181680b0af
@ -268,6 +268,9 @@ public class ApiClient {
|
|||||||
* @return ApiClient this client
|
* @return ApiClient this client
|
||||||
*/
|
*/
|
||||||
public ApiClient addDefaultHeader(String name, String value) {
|
public ApiClient addDefaultHeader(String name, String value) {
|
||||||
|
if (defaultHeaders.containsKey(name)) {
|
||||||
|
defaultHeaders.remove(name);
|
||||||
|
}
|
||||||
defaultHeaders.add(name, value);
|
defaultHeaders.add(name, value);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user