forked from loafle/openapi-generator-original
fix ApiKeyAuth applyToHeader when no api-key is provided
This commit is contained in:
parent
060f0f33c2
commit
92e7d0e69c
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user