Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Mateoaea committed Jul 25, 2018
1 parent b6e298d commit ddaa3a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/electron-updater/src/MacUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ export class MacUpdater extends AppUpdater {
}

private doProxyUpdateFile(nativeResponse: ServerResponse, url: string, headers: OutgoingHttpHeaders, sha512: string | null, cancellationToken: CancellationToken, errorHandler: (error: Error) => void) {
const downloadRequest = this.httpExecutor.doRequest(configureRequestOptionsFromUrl(url, {headers, redirect: "manual"}), downloadResponse => {
const config = {...configureRequestOptionsFromUrl(url, {headers}), redirect: "manual"}
const downloadRequest = this.httpExecutor.doRequest(config, downloadResponse => {
const statusCode = downloadResponse.statusCode
if (statusCode >= 400) {
this._logger.warn(`Request to ${url} failed, status code: ${statusCode}`)
Expand Down

0 comments on commit ddaa3a5

Please sign in to comment.