Skip to content

Commit

Permalink
fix: missing )
Browse files Browse the repository at this point in the history
  • Loading branch information
DTrombett authored Nov 21, 2024
1 parent 6a78c2a commit e5b5894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/handler/redirect-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class RedirectHandler {
// In case of HTTP 301 or 302 with POST, change the method to GET
if ((statusCode === 301 || statusCode === 302) && this.opts.method === 'POST') {
this.opts.method = 'GET'
util.destroy(this.opts.body.on?.('error', () => {})
util.destroy(this.opts.body.on?.('error', () => {}))
this.opts.body = null
}

Expand Down

0 comments on commit e5b5894

Please sign in to comment.