Skip to content

Commit

Permalink
Merge pull request #19 from Kygo4/master
Browse files Browse the repository at this point in the history
bugfix
  • Loading branch information
zfcheng authored Jan 8, 2020
2 parents b3e1378 + 6ae80ef commit 55aa248
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mos-mss",
"version": "1.1.2",
"version": "1.1.3",
"description": "mtyun MSS(Meituan Storage Service) sdk for Node.js",
"main": "src/index.js",
"files": [
Expand Down
8 changes: 2 additions & 6 deletions src/net/mos-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,8 @@ function createRequest(params) {
hostname: this.options.endpoint
});

//不允许 = 结束,例如:?delete=
const len = urlPath.length - 1;
if (urlPath.charAt(len) === '=') {
urlPath = urlPath.substr(0, len);
}

//不允许 delete= 结束
urlPath = urlPath.replace(/(.*)delete=/, '$1delete');
let url = urlModel.parse(urlPath);

headers = headers ? headers : {};
Expand Down

0 comments on commit 55aa248

Please sign in to comment.