Add debug condition

main
Bob Mottram 2023-03-18 18:22:28 +00:00
parent 0fea60a988
commit 9c7d3c615b
1 changed files with 4 additions and 3 deletions

View File

@ -2166,10 +2166,11 @@ class PubServer(BaseHTTPRequestHandler):
self.server.postreq_busy = False self.server.postreq_busy = False
return 2 return 2
# follower synchronization requests # follower synchronization endpoint information
if self.headers.get('Collection-Synchronization'): if self.headers.get('Collection-Synchronization'):
print('Collection-Synchronization: ' + if debug:
str(self.headers['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 = {}