forked from loafle/openapi-generator-original
[dart][dart-dio] Allow API key authentication with multiple API keys (#8728)
Remove the break stopping after the first key.
This commit is contained in:
parent
55292dd22b
commit
7704ff3d08
@ -20,7 +20,6 @@ class ApiKeyAuthInterceptor extends AuthInterceptor {
|
||||
} else {
|
||||
options.headers[authKeyName] = apiKey;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return super.onRequest(options);
|
||||
|
@ -26,7 +26,6 @@ class ApiKeyAuthInterceptor extends AuthInterceptor {
|
||||
} else {
|
||||
options.headers[authKeyName] = apiKey;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return super.onRequest(options);
|
||||
|
@ -26,7 +26,6 @@ class ApiKeyAuthInterceptor extends AuthInterceptor {
|
||||
} else {
|
||||
options.headers[authKeyName] = apiKey;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return super.onRequest(options);
|
||||
|
@ -26,7 +26,6 @@ class ApiKeyAuthInterceptor extends AuthInterceptor {
|
||||
} else {
|
||||
options.headers[authKeyName] = apiKey;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return super.onRequest(options);
|
||||
|
Loading…
x
Reference in New Issue
Block a user