Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Feb 12, 2020
1 parent 58ffaa6 commit 32e609f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
22 changes: 11 additions & 11 deletions package.json
Expand Up @@ -41,7 +41,7 @@
"superagent"
],
"dependencies": {
"@sindresorhus/is": "^1.0.0",
"@sindresorhus/is": "^2.0.0",
"@szmarczak/http-timer": "^4.0.0",
"@types/cacheable-request": "^6.0.1",
"cacheable-lookup": "^2.0.0",
Expand All @@ -55,7 +55,7 @@
"p-event": "^4.0.0",
"responselike": "^2.0.0",
"to-readable-stream": "^2.0.0",
"type-fest": "^0.9.0"
"type-fest": "^0.10.0"
},
"devDependencies": {
"@ava/typescript": "^1.1.0",
Expand All @@ -67,29 +67,29 @@
"@types/proxyquire": "^1.3.28",
"@types/sinon": "^7.0.13",
"@types/tough-cookie": "^2.3.5",
"@typescript-eslint/eslint-plugin": "^2.17.0",
"@typescript-eslint/parser": "^2.17.0",
"ava": "^3.2.0",
"@typescript-eslint/eslint-plugin": "^2.19.2",
"@typescript-eslint/parser": "^2.19.2",
"ava": "^3.3.0",
"coveralls": "^3.0.4",
"create-test-server": "^3.0.1",
"del-cli": "^3.0.0",
"delay": "^4.3.0",
"eslint-config-xo-typescript": "^0.24.1",
"eslint-config-xo-typescript": "^0.26.0",
"express": "^4.17.1",
"form-data": "^3.0.0",
"get-port": "^5.0.0",
"keyv": "^4.0.0",
"lolex": "^5.1.1",
"nock": "^11.3.4",
"np": "^5.1.3",
"lolex": "^6.0.0",
"nock": "^11.8.2",
"np": "^6.0.0",
"nyc": "^15.0.0",
"proxyquire": "^2.0.1",
"sinon": "^8.1.1",
"slow-stream": "0.0.4",
"tempy": "^0.3.0",
"tempy": "^0.4.0",
"tough-cookie": "^3.0.0",
"typescript": "3.7.5",
"xo": "^0.25.3"
"xo": "^0.26.0"
},
"types": "dist/source",
"sideEffects": false,
Expand Down
1 change: 1 addition & 0 deletions source/request-as-event-emitter.ts
Expand Up @@ -101,6 +101,7 @@ export default (options: NormalizedOptions): RequestAsEventEmitter => {
if (options.followRedirect && Reflect.has(typedResponse.headers, 'location') && redirectCodes.has(statusCode)) {
typedResponse.resume(); // We're being redirected, we don't care about the response.

// eslint-disable-next-line @typescript-eslint/no-unnecessary-boolean-literal-compare
if (statusCode === 303 || options.methodRewriting === false) {
if (options.method !== 'GET' && options.method !== 'HEAD') {
// Server responded with "see other", indicating that the resource exists at another location,
Expand Down

0 comments on commit 32e609f

Please sign in to comment.