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>{};
|
final authHeaders = {
|
||||||
for (var header in [
|
for (final header in [
|
||||||
'authorization',
|
'authorization',
|
||||||
'x-amz-date',
|
'x-amz-date',
|
||||||
'x-amz-content-sha256',
|
'x-amz-content-sha256',
|
||||||
]) {
|
])
|
||||||
final value = authResponse.headers[header];
|
if (authResponse.headers[header] case final value?)
|
||||||
if (value != null) {
|
header: value,
|
||||||
authHeaders[header] = value;
|
};
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
final minioUrl = settings.minioUri.replace(
|
final minioUrl = settings.minioUri.replace(
|
||||||
path: "/lasuite-docs/$path",
|
path: "/lasuite-docs/$path",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue