We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b2752a commit 3f1750cCopy full SHA for 3f1750c
src/node/update.ts
@@ -111,14 +111,13 @@ export class UpdateProvider {
111
112
if (response.statusCode >= 300) {
113
++redirects
114
+ response.destroy()
115
if (redirects > maxRedirects) {
- response.destroy()
116
return reject(new Error("reached max redirects"))
117
}
118
if (!response.headers.location) {
119
return reject(new Error("received redirect with no location header"))
120
121
122
return request(url.resolve(uri, response.headers.location))
123
124
0 commit comments