fix ApiKeyAuth applyToHeader when no api-key is provided

This commit is contained in:
Shyri Villar 2016-01-20 19:59:28 +01:00
parent 060f0f33c2
commit 92e7d0e69c

View File

@ -44,6 +44,9 @@ public class ApiKeyAuth implements Authentication {
@Override
public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams) {
String value;
if (apiKey == null) {
return;
}
if (apiKeyPrefix != null) {
value = apiKeyPrefix + " " + apiKey;
} else {