Skip to content

Commit

Permalink
Merge pull request #9175 from mishamosher/user-agent-recording
Browse files Browse the repository at this point in the history
User agent for recording backend requests
  • Loading branch information
nickvergessen authored Mar 28, 2023
2 parents b4c2f5d + c57cb22 commit 19a7c08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recording/src/nextcloud/talk/recording/BackendNotifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 19a7c08

Please sign in to comment.