backend (backblaze): set user agent as per integration checklist

This commit is contained in:
Mickael Kerjean 2020-06-24 00:05:17 +10:00
parent 078e25b97b
commit 5eeb22a559

View file

@ -514,6 +514,7 @@ func (this Backblaze) request(method string, url string, body io.Reader, fn func
} else {
req.Header.Set("Authorization", this.Token)
}
req.Header.Set("User-Agent", "Filestash " + APP_VERSION + "." + BUILD_DATE)
req.Header.Set("Accept", "application/json")
if fn != nil {
fn(req)