ac-backblaze-uploader
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -0,1 +1,13 @@ | ||
<a name="1.1.2"></a> | ||
## [1.1.2](https://github.com/mmpro/ac-backblaze-uploader/compare/v1.1.1...v1.1.2) (2019-09-23 14:46) | ||
### Bug Fixes | ||
* **Uploader:** Allow optional (different) headUrl | MP ([6802f96](https://github.com/mmpro/ac-backblaze-uploader/commit/6802f96)) | ||
If you use signed urls (e.g. AWS S3) then the signed URL contains the HTTP verb, therefore you must | ||
use different URLs for HEAD and GET | ||
<a name="1.1.1"></a> | ||
@@ -2,0 +14,0 @@ ## [1.1.1](https://github.com/mmpro/ac-backblaze-uploader/compare/v1.1.0...v1.1.1) (2019-09-21 16:27) |
@@ -21,2 +21,3 @@ const _ = require('lodash') | ||
const url = _.get(params, 'url') | ||
const headUrl = _.get(params, 'headUrl', url) | ||
const fileName = _.get(params, 'fileName') | ||
@@ -43,3 +44,3 @@ const expectedFileSize = _.get(params, 'expectedFileSize') | ||
headObject: (done) => { | ||
axios.head(url) | ||
axios.head(headUrl) | ||
.then(response => { | ||
@@ -46,0 +47,0 @@ contentLength = _.get(response, 'headers.content-length') |
@@ -6,3 +6,3 @@ { | ||
"repository": "mmpro/ac-backblaze-uploader", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"dependencies": { | ||
@@ -9,0 +9,0 @@ "async": "^3.1.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11538
216