mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-06 15:40:54 +00:00
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="key">Api Key name.</param>
|
||||||
/// <param name="value">Api Key value.</param>
|
/// <param name="value">Api Key value.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public void AddApiKey(string key, string value)
|
public void AddApiKey(string key, string value)
|
||||||
{
|
{
|
||||||
if (ApiKey.ContainsKey(key))
|
if (ApiKey.ContainsKey(key))
|
||||||
ApiKey.Remove(key);
|
ApiKey.Remove(key);
|
||||||
ApiKey.Add(key, value);
|
ApiKey.Add(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sets the API key prefix.
|
/// Sets the API key prefix.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="key">Api Key name.</param>
|
/// <param name="key">Api Key name.</param>
|
||||||
@ -188,7 +188,6 @@ namespace {{packageName}}.Client
|
|||||||
ApiKeyPrefix.Add(key, value);
|
ApiKeyPrefix.Add(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the HTTP user agent.
|
/// Gets or sets the HTTP user agent.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user