Skip to content

Commit 020a6a1

Browse files
authored
Fix bug in ObjectMetadata.replace -- release gcloud (#187)
1 parent 3740cf5 commit 020a6a1

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

pkgs/gcloud/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.8.17
2+
- Fix bug in `ObjectMetadata.replace` where `contentEncoding` overwrote
3+
`contentDisposition` and `contentLanguage`.
4+
15
## 0.8.16
26

37
- `BucketEntry` is now `sealed` this may cause **breakage** for anyone

pkgs/gcloud/lib/src/storage_impl.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ class _ObjectMetadata implements ObjectMetadata {
514514
contentType: contentType ?? this.contentType,
515515
contentEncoding: contentEncoding ?? this.contentEncoding,
516516
cacheControl: cacheControl ?? this.cacheControl,
517-
contentDisposition: contentDisposition ?? this.contentEncoding,
518-
contentLanguage: contentLanguage ?? this.contentEncoding,
517+
contentDisposition: contentDisposition ?? this.contentDisposition,
518+
contentLanguage: contentLanguage ?? this.contentLanguage,
519519
custom: custom != null ? Map.from(custom) : this.custom);
520520
}
521521
}

pkgs/gcloud/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: gcloud
2-
version: 0.8.16
2+
version: 0.8.17
33
description: >-
44
High level idiomatic Dart API for Google Cloud Storage, Pub-Sub and Datastore.
55
repository: https://github.com/dart-lang/labs/tree/main/pkgs/gcloud

0 commit comments

Comments
 (0)