forked from loafle/openapi-generator-original
Csharp api key header issue 3295
This commit is contained in:
parent
41bab483e0
commit
92e8efde1a
@ -169,14 +169,14 @@ namespace {{packageName}}.Client
|
||||
/// <param name="key">Api Key name.</param>
|
||||
/// <param name="value">Api Key value.</param>
|
||||
/// <returns></returns>
|
||||
public void AddApiKey(string key, string value)
|
||||
public void AddApiKey(string key, string value)
|
||||
{
|
||||
if (ApiKey.ContainsKey(key))
|
||||
ApiKey.Remove(key);
|
||||
ApiKey.Add(key, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <summary>
|
||||
/// Sets the API key prefix.
|
||||
/// </summary>
|
||||
/// <param name="key">Api Key name.</param>
|
||||
@ -188,7 +188,6 @@ namespace {{packageName}}.Client
|
||||
ApiKeyPrefix.Add(key, value);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the HTTP user agent.
|
||||
/// </summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user