Skip to content

Commit

Permalink
move back to old location because we do not want to continually refet…
Browse files Browse the repository at this point in the history
…ch a bad config closes #3076
  • Loading branch information
myleshorton committed Sep 1, 2015
1 parent 7ee6dd4 commit c149174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github.com/getlantern/flashlight/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ func (cfg Config) fetchCloudConfig() ([]byte, error) {
log.Debugf("Error closing response body: %v", err)
}
}()
lastCloudConfigETag[url] = resp.Header.Get(etag)

if resp.StatusCode == 304 {
log.Debugf("Config unchanged in cloud")
Expand All @@ -381,7 +382,6 @@ func (cfg Config) fetchCloudConfig() ([]byte, error) {
if err != nil {
return nil, fmt.Errorf("Unable to open gzip reader: %s", err)
}
lastCloudConfigETag[url] = resp.Header.Get(etag)
log.Debugf("Fetched cloud config")
return ioutil.ReadAll(gzReader)
}
Expand Down

0 comments on commit c149174

Please sign in to comment.