Log synchronization requests

main
Bob Mottram 2023-03-15 17:37:32 +00:00
parent a4f4d336e2
commit f9d4a76179
1 changed files with 5 additions and 0 deletions

View File

@ -2164,6 +2164,11 @@ class PubServer(BaseHTTPRequestHandler):
self.server.postreq_busy = False self.server.postreq_busy = False
return 2 return 2
# follower synchronization requests
if self.headers.get('Collection-Synchronization'):
print('Collection-Synchronization: ' +
str(self.headers['Collection-Synchronization']))
# Convert the headers needed for signature verification to dict # Convert the headers needed for signature verification to dict
headers_dict = {} headers_dict = {}
headers_dict['host'] = self.headers['host'] headers_dict['host'] = self.headers['host']