Skip to content

Commit

Permalink
Fix bug in ObjectMetadata.replace -- release gcloud (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasfj authored Nov 11, 2024
1 parent 3740cf5 commit 020a6a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions pkgs/gcloud/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.8.17
- Fix bug in `ObjectMetadata.replace` where `contentEncoding` overwrote
`contentDisposition` and `contentLanguage`.

## 0.8.16

- `BucketEntry` is now `sealed` this may cause **breakage** for anyone
Expand Down
4 changes: 2 additions & 2 deletions pkgs/gcloud/lib/src/storage_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,8 @@ class _ObjectMetadata implements ObjectMetadata {
contentType: contentType ?? this.contentType,
contentEncoding: contentEncoding ?? this.contentEncoding,
cacheControl: cacheControl ?? this.cacheControl,
contentDisposition: contentDisposition ?? this.contentEncoding,
contentLanguage: contentLanguage ?? this.contentEncoding,
contentDisposition: contentDisposition ?? this.contentDisposition,
contentLanguage: contentLanguage ?? this.contentLanguage,
custom: custom != null ? Map.from(custom) : this.custom);
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkgs/gcloud/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: gcloud
version: 0.8.16
version: 0.8.17
description: >-
High level idiomatic Dart API for Google Cloud Storage, Pub-Sub and Datastore.
repository: https://github.com/dart-lang/labs/tree/main/pkgs/gcloud
Expand Down

0 comments on commit 020a6a1

Please sign in to comment.