mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
backend (backblaze): set user agent as per integration checklist
This commit is contained in:
parent
078e25b97b
commit
5eeb22a559
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue