diff --git a/index.js b/index.js index d8193b8..d841082 100644 --- a/index.js +++ b/index.js @@ -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); } diff --git a/package.json b/package.json index a87c31b..0a83558 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "utility" ], "dependencies": { - "got": "^9.1.0" + "got": "^9.2.0" }, "devDependencies": { "ava": "^1.0.0-beta.7",