mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 02:55:19 +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
|
||||
*/
|
||||
public ApiClient addDefaultHeader(String name, String value) {
|
||||
if (defaultHeaders.containsKey(name)) {
|
||||
defaultHeaders.remove(name);
|
||||
}
|
||||
defaultHeaders.add(name, value);
|
||||
return this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user