We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sindresorhus
Learn more about funding links in repositories.
Report abuse
1 parent e59a7ba commit a66fa03Copy full SHA for a66fa03
index.js
@@ -17,10 +17,6 @@ const create = () => got.create({
17
options.headers.authorization = options.headers.authorization || `token ${options.token}`;
18
}
19
20
- if (options.method && options.method === 'PUT' && !options.body) {
21
- options.headers['content-length'] = 0;
22
- }
23
-
24
if (options.stream) {
25
return next(options);
26
package.json
@@ -33,7 +33,7 @@
33
"utility"
34
],
35
"dependencies": {
36
- "got": "^9.1.0"
+ "got": "^9.2.0"
37
},
38
"devDependencies": {
39
"ava": "^1.0.0-beta.7",
0 commit comments