cleanup
This commit is contained in:
parent
605f32b3e8
commit
c00582c750
1 changed files with 9 additions and 11 deletions
|
@ -42,17 +42,15 @@ void main(List<String> argsRaw) async {
|
|||
);
|
||||
}
|
||||
|
||||
final authHeaders = <String, String>{};
|
||||
for (var header in [
|
||||
'authorization',
|
||||
'x-amz-date',
|
||||
'x-amz-content-sha256',
|
||||
]) {
|
||||
final value = authResponse.headers[header];
|
||||
if (value != null) {
|
||||
authHeaders[header] = value;
|
||||
}
|
||||
}
|
||||
final authHeaders = {
|
||||
for (final header in [
|
||||
'authorization',
|
||||
'x-amz-date',
|
||||
'x-amz-content-sha256',
|
||||
])
|
||||
if (authResponse.headers[header] case final value?)
|
||||
header: value,
|
||||
};
|
||||
|
||||
final minioUrl = settings.minioUri.replace(
|
||||
path: "/lasuite-docs/$path",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue