-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: automatically detect contentType if not provided #1190
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
Thank you! I will take it over :) |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
@@ -3438,12 +3438,6 @@ class Bucket extends ServiceObject { | |||
}); | |||
} | |||
|
|||
const contentType = mime.contentType(path.basename(pathString)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed as this is identically covered inside of createWriteStream()
when this code makes its way there.
@googlebot I consent. |
Codecov Report
@@ Coverage Diff @@
## master #1190 +/- ##
==========================================
+ Coverage 99.17% 99.29% +0.11%
==========================================
Files 12 12
Lines 11454 11474 +20
Branches 594 805 +211
==========================================
+ Hits 11360 11393 +33
+ Misses 94 81 -13
Continue to review full report at Codecov.
|
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) ℹ️ Googlers: Go here for more info. |
This is to upgrade the vulnerable `date-and-time` dependency. The latest version has the following breaking changes which are all okay: - automatically detect contentType if not provided (googleapis/nodejs-storage#1190) - drop keepAcl parameter in file copy (googleapis/nodejs-storage#1166) - drop support for node.js 8.x - allow leading slashes in file name (googleapis/nodejs-storage#820) - upgrade engines field to >=8.10.0 (googleapis/nodejs-storage#688)
This is to upgrade the vulnerable `axios` dependency. The latest version has the following breaking changes which are all okay: - automatically detect contentType if not provided (googleapis/nodejs-storage#1190) - drop keepAcl parameter in file copy (googleapis/nodejs-storage#1166) - drop support for node.js 8.x - allow leading slashes in file name (googleapis/nodejs-storage#820) - upgrade engines field to >=8.10.0 (googleapis/nodejs-storage#688)
This is to upgrade the vulnerable `axios` dependency. The latest version has the following breaking changes which are all okay: - automatically detect contentType if not provided (googleapis/nodejs-storage#1190) - drop keepAcl parameter in file copy (googleapis/nodejs-storage#1166) - drop support for node.js 8.x - allow leading slashes in file name (googleapis/nodejs-storage#820) - upgrade engines field to >=8.10.0 (googleapis/nodejs-storage#688)
This is to upgrade the vulnerable `date-and-time` dependency. The latest version has the following breaking changes which are all okay: - automatically detect contentType if not provided (googleapis/nodejs-storage#1190) - drop keepAcl parameter in file copy (googleapis/nodejs-storage#1166) - drop support for node.js 8.x - allow leading slashes in file name (googleapis/nodejs-storage#820) - upgrade engines field to >=8.10.0 (googleapis/nodejs-storage#688)
Fixes #1184 🦕
In a rush, I didn't have time to edit tests.ts file. It would be appreciated if someone could!