diff --git a/package.json b/package.json index 504c89a..95e7612 100644 --- a/package.json +++ b/package.json @@ -45,14 +45,14 @@ "fetch" ], "dependencies": { - "create-error-class": "^3.0.0", "@floatdrop/duplexer2": "^0.1.4", + "create-error-class": "^3.0.0", "get-stream": "^1.1.0", "is-plain-obj": "^1.0.0", "is-redirect": "^1.0.0", "is-stream": "^1.0.0", "lowercase-keys": "^1.0.0", - "node-status-codes": "^1.0.0", + "node-status-codes": "^2.0.0", "timed-out": "^2.0.0", "unzip-response": "^1.0.0", "url-parse-lax": "^1.0.0" diff --git a/test/redirects.js b/test/redirects.js index b36a9ed..98473fc 100644 --- a/test/redirects.js +++ b/test/redirects.js @@ -72,7 +72,7 @@ test('redirect only GET and HEAD requests', async t => { await got(`${s.url}/relative`, {body: 'wow'}); t.fail('Exception was not thrown'); } catch (err) { - t.is(err.message, 'Response code 302 (Moved Temporarily)'); + t.is(err.message, 'Response code 302 (Found)'); t.is(err.path, '/relative'); t.is(err.statusCode, 302); }