diff options
author | Elmer Miroslav Mosher Golovin <miroslav@mishamosher.com> | 2023-03-28 13:37:33 +0300 |
---|---|---|
committer | Elmer Miroslav Mosher Golovin <miroslav@mishamosher.com> | 2023-03-28 13:37:33 +0300 |
commit | ce6a4bb4f59acde580147de797efd651cf2c9362 (patch) | |
tree | 03e9dd2a9e0ea2c110b1f2a071e8919f78dc1ea6 /recording | |
parent | 56c45bf0b95eed5a84aa8e70eb1903bce688d13d (diff) |
Use USER_AGENT where appropriate
Signed-off-by: Elmer Miroslav Mosher Golovin <miroslav@mishamosher.com>
Diffstat (limited to 'recording')
-rw-r--r-- | recording/src/nextcloud/talk/recording/BackendNotifier.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/recording/src/nextcloud/talk/recording/BackendNotifier.py b/recording/src/nextcloud/talk/recording/BackendNotifier.py index 0e9d2ac9f..0cd7b3e66 100644 --- a/recording/src/nextcloud/talk/recording/BackendNotifier.py +++ b/recording/src/nextcloud/talk/recording/BackendNotifier.py @@ -99,7 +99,7 @@ def backendRequest(backend, data): 'OCS-ApiRequest': 'true', 'Talk-Recording-Random': random, 'Talk-Recording-Checksum': checksum, - 'User-Agent': 'Mozilla/5.0 (Recording) Nextcloud-Talk v' + recording.__version__, + 'User-Agent': recording.USER_AGENT, } backendRequest = Request(url, data, headers) @@ -209,6 +209,7 @@ def uploadRecording(backend, token, fileName, owner): 'OCS-ApiRequest': 'true', 'Talk-Recording-Random': random, 'Talk-Recording-Checksum': checksum, + 'User-Agent': recording.USER_AGENT, } uploadRequest = Request(url, data, headers) |