Skip to content

Commit

Permalink
Release 2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
alinode-oss committed Jul 9, 2018
1 parent 992f052 commit 5f02a0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion es5/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ var Client = function () {
this.host = `${accountid}.${region}${internal}.fc.aliyuncs.com`;
this.version = '2016-08-15';
this.timeout = Number.isFinite(config.timeout) ? config.timeout : 60000; // default is 60s

this.headers = config.headers || {};
}

_createClass(Client, [{
Expand Down Expand Up @@ -108,7 +110,7 @@ var Client = function () {
url = `${url}?${querystring.stringify(query)}`;
}

headers = Object.assign(this.buildHeaders(), headers);
headers = Object.assign(this.buildHeaders(), this.headers, headers);


if (body) {
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": "@alicloud/fc2",
"version": "2.0.3",
"version": "2.0.4",
"description": "Aliyun Function Compute API SDK2",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 5f02a0a

Please sign in to comment.