diff options
author | Wim <wim@42.be> | 2018-02-15 23:18:58 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-02-15 23:18:58 +0100 |
commit | f58be0d1c1236a6a07a6917f3258a5608e1364f8 (patch) | |
tree | e466cbe558d9e3dca260b3c142897e5ee68fecfb /gateway/gateway.go | |
parent | 1152394bc1f40d1bb2326d630ad55bf56c5f2b0f (diff) | |
download | matterbridge-msglm-f58be0d1c1236a6a07a6917f3258a5608e1364f8.tar.gz matterbridge-msglm-f58be0d1c1236a6a07a6917f3258a5608e1364f8.tar.bz2 matterbridge-msglm-f58be0d1c1236a6a07a6917f3258a5608e1364f8.zip |
Add SHA to FileInfo
Diffstat (limited to 'gateway/gateway.go')
-rw-r--r-- | gateway/gateway.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go index 3d0a61ed..c16264a2 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -362,6 +362,7 @@ func (gw *Gateway) handleFiles(msg *config.Message) { durl := gw.Config.General.MediaServerDownload + "/" + sha1sum + "/" + fi.Name extra := msg.Extra["file"][i].(config.FileInfo) extra.URL = durl + extra.SHA = sha1sum msg.Extra["file"][i] = extra req, _ := http.NewRequest("PUT", url, reader) req.Header.Set("Content-Type", "binary/octet-stream") |