Csharp api key header issue 3295

This commit is contained in:
lunat 2016-07-19 14:37:03 +02:00
parent 41bab483e0
commit 92e8efde1a

View File

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