Comparing version 3.1.2 to 3.1.3
3.1.3 / 2015-12-18 | ||
================== | ||
* fix(object): custom content-type support lower case | ||
* deps: update dependencies | ||
3.1.2 / 2015-10-26 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -1,2 +0,2 @@ | ||
/**! | ||
/** | ||
* Copyright(c) ali-sdk and other contributors. | ||
@@ -134,3 +134,3 @@ * MIT Licensed | ||
headers['Content-Md5'] || '', | ||
headers['Content-Type'], | ||
getHeader(headers, 'Content-Type'), | ||
headers.Date || new Date().toString() | ||
@@ -193,3 +193,3 @@ ]; | ||
if ((params.content || params.stream) && !headers['Content-Type']) { | ||
if ((params.content || params.stream) && !getHeader(headers, 'Content-Type')) { | ||
if (params.mime && params.mime.indexOf('/') > 0) { | ||
@@ -369,1 +369,5 @@ headers['Content-Type'] = params.mime; | ||
}; | ||
function getHeader(headers, name) { | ||
return headers[name] || headers[name.toLowerCase()]; | ||
} |
@@ -1,2 +0,2 @@ | ||
/**! | ||
/** | ||
* Copyright(c) ali-sdk and other contributors. | ||
@@ -3,0 +3,0 @@ * MIT Licensed |
{ | ||
"name": "ali-oss", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "aliyun oss(open storage service) node client", | ||
@@ -35,9 +35,9 @@ "main": "lib/client.js", | ||
"devDependencies": { | ||
"autod": "^2.1.3", | ||
"autod": "^2.2.0", | ||
"co-fs": "^1.2.0", | ||
"istanbul": "^0.3.21", | ||
"istanbul": "^0.4.1", | ||
"mm": "^1.3.5", | ||
"mocha": "^2.3.3", | ||
"mocha": "^2.3.4", | ||
"should": "^7.1.0", | ||
"thunk-mocha": "^0.1.1" | ||
"thunk-mocha": "^1.0.1" | ||
}, | ||
@@ -55,10 +55,10 @@ "dependencies": { | ||
"humanize-ms": "~1.0.1", | ||
"is-type-of": "~0.3.1", | ||
"is-type-of": "~1.0.0", | ||
"merge-descriptors": "~1.0.0", | ||
"mime": "~1.3.4", | ||
"sdk-base": "~1.0.1", | ||
"urllib": "~2.5.0", | ||
"utility": "~1.4.0", | ||
"sdk-base": "~1.1.0", | ||
"urllib": "~2.6.0", | ||
"utility": "~1.6.0", | ||
"xml2js": "~0.4.12" | ||
} | ||
} |
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
100127
1351
+ Addedescape-html@1.0.3(transitive)
+ Addedis-class@0.0.9(transitive)
+ Addedis-type-of@1.0.0(transitive)
+ Addedsdk-base@1.1.0(transitive)
+ Addedurllib@2.6.0(transitive)
+ Addedutility@1.6.0(transitive)
- Removedis-type-of@0.3.1(transitive)
- Removedsdk-base@1.0.1(transitive)
- Removedurllib@2.5.0(transitive)
- Removedutility@1.4.0(transitive)
Updatedis-type-of@~1.0.0
Updatedsdk-base@~1.1.0
Updatedurllib@~2.6.0
Updatedutility@~1.6.0