Shaman: Include original filename when uploading file

This commit is contained in:
Sybren A. Stüvel 2019-03-01 13:54:16 +01:00
parent a2f9a7b484
commit 7a7304d7a3

View File

@ -262,8 +262,10 @@ class ShamanTransferrer(bat_transfer.FileTransferer):
fileinfo = self._file_info[path] fileinfo = self._file_info[path]
self.log.info(' %s', path) self.log.info(' %s', path)
headers = {
'X-Shaman-Original-Filename': path,
}
# Let the Shaman know whether we can defer uploading this file or not. # Let the Shaman know whether we can defer uploading this file or not.
headers = {}
can_defer = (len(deferred_paths) < MAX_DEFERRED_PATHS can_defer = (len(deferred_paths) < MAX_DEFERRED_PATHS
and path not in deferred_paths and path not in deferred_paths
and len(to_upload)) and len(to_upload))