Thanks to visit codestin.com Credit goes to github.com
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 c1f4484 commit ef7ce56Copy full SHA for ef7ce56
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