Skip to content

Commit

Permalink
header 空容错
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Apr 17, 2018
1 parent a6387a4 commit 6e99b1c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var obj2str = function (obj) {

var request = function (params, callback) {
var filePath = params.filePath;
var headers = params.headers;
var headers = params.headers || {};
var url = params.url;
var method = params.method;
var onProgress = params.onProgress;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cos-wx-sdk-v5",
"version": "0.4.1",
"version": "0.4.2",
"description": "wx-sdk-v5 for [腾讯云对象存储服务](http://wiki.qcloud.com/wiki/COS%E4%BA%A7%E5%93%81%E4%BB%8B%E7%BB%8D)",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/cos.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ var COS = function (options) {
util.extend(COS.prototype, base);

COS.getAuthorization = util.getAuth;
COS.version = '0.4.1';
COS.version = '0.4.2';

module.exports = COS;

0 comments on commit 6e99b1c

Please sign in to comment.