summaryrefslogtreecommitdiffstats
path: root/recording
diff options
context:
space:
mode:
authorElmer Miroslav Mosher Golovin <miroslav@mishamosher.com>2023-03-28 00:38:54 +0300
committerJoas Schilling <coding@schilljs.com>2023-03-28 09:11:53 +0200
commitc57cb227bd1fb6890ed8cb8fd9cd237733a5050f (patch)
tree252de1e713c5c6cfb8cd163237d4b5769fc49e83 /recording
parentb4c2f5dfe3f02170eff6d5030df969b1d8346356 (diff)
Use hardcoded User-Agent
Signed-off-by: Elmer Miroslav Mosher Golovin <miroslav@mishamosher.com>
Diffstat (limited to 'recording')
-rw-r--r--recording/src/nextcloud/talk/recording/BackendNotifier.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/recording/src/nextcloud/talk/recording/BackendNotifier.py b/recording/src/nextcloud/talk/recording/BackendNotifier.py
index 4233bfe90..0e9d2ac9f 100644
--- a/recording/src/nextcloud/talk/recording/BackendNotifier.py
+++ b/recording/src/nextcloud/talk/recording/BackendNotifier.py
@@ -28,6 +28,7 @@ import json
import logging
import os
import ssl
+from nextcloud.talk import recording
from secrets import token_urlsafe
from urllib.request import Request, urlopen
from urllib3 import encode_multipart_formdata
@@ -98,6 +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__,
}
backendRequest = Request(url, data, headers)