Skip to content

Commit

Permalink
Remove duplicated code (#32)
Browse files Browse the repository at this point in the history
Because `got` has it implemented already.
  • Loading branch information
szmarczak authored and sindresorhus committed Aug 31, 2018
1 parent e59a7ba commit a66fa03
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions index.js
Expand Up @@ -17,10 +17,6 @@ const create = () => got.create({
options.headers.authorization = options.headers.authorization || `token ${options.token}`;
}

if (options.method && options.method === 'PUT' && !options.body) {
options.headers['content-length'] = 0;
}

if (options.stream) {
return next(options);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -33,7 +33,7 @@
"utility"
],
"dependencies": {
"got": "^9.1.0"
"got": "^9.2.0"
},
"devDependencies": {
"ava": "^1.0.0-beta.7",
Expand Down

0 comments on commit a66fa03

Please sign in to comment.