- 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:
JacC510 2017-11-20 17:42:19 +01:00 committed by William Cheng
parent 6476c0aa18
commit 181680b0af

View File

@ -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;
}