Skip to content

Commit

Permalink
Fixed a bug where an etag wasn't being properly saved.
Browse files Browse the repository at this point in the history
  • Loading branch information
rovaughn committed Feb 7, 2015
1 parent 86aa65b commit 85d5d0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,9 @@ func GetDecryptedHTTP(url string, key *Key) (data []byte, etag string, err error
return
}

if err = ioutil.WriteFile(cachedETagPath, []byte(res.Header.Get("ETag")), 0666); err != nil {
etag = res.Header.Get("ETag")

if err = ioutil.WriteFile(cachedETagPath, []byte(etag), 0666); err != nil {
return
}

Expand Down

0 comments on commit 85d5d0b

Please sign in to comment.