Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3407 from brave/auto-updater-fix
Browse files Browse the repository at this point in the history
Retrieve status code from response object in metadata request
  • Loading branch information
bbondy committed Aug 25, 2016
2 parents 97f17a1 + 57b7dc0 commit f0c8b29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ var requestVersionInfo = (done, pingOnly) => {
var queryString = `${platformBaseUrl}?${querystring.stringify(query)}`
debug(queryString)

request(queryString, (err, statusCode, body) => {
request(queryString, (err, response, body) => {
var statusCode = response.statusCode
appActions.setUpdateLastCheck()
if (pingOnly) {
return
Expand Down

0 comments on commit f0c8b29

Please sign in to comment.