Skip to content

Commit

Permalink
Automatically change contentType to auto if none provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
atn authored May 12, 2020
1 parent 0bb1909 commit c61fa48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,11 @@ class File extends ServiceObject<File> {

if (options.metadata.contentType === 'auto') {
options.metadata.contentType = mime.getType(this.name);
} else {
options.metadata.contentType = mime.getType(this.name);
}
} else {
options.metadata.contentType = mime.getType(this.name);
}

let gzip = options.gzip;
Expand Down

0 comments on commit c61fa48

Please sign in to comment.