Skip to content

Commit a66fa03

Browse files
szmarczaksindresorhus
authored andcommittedAug 31, 2018
Remove duplicated code (#32)
Because `got` has it implemented already.
1 parent e59a7ba commit a66fa03

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed
 

‎index.js

-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ const create = () => got.create({
1717
options.headers.authorization = options.headers.authorization || `token ${options.token}`;
1818
}
1919

20-
if (options.method && options.method === 'PUT' && !options.body) {
21-
options.headers['content-length'] = 0;
22-
}
23-
2420
if (options.stream) {
2521
return next(options);
2622
}

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"utility"
3434
],
3535
"dependencies": {
36-
"got": "^9.1.0"
36+
"got": "^9.2.0"
3737
},
3838
"devDependencies": {
3939
"ava": "^1.0.0-beta.7",

0 commit comments

Comments
 (0)
Please sign in to comment.