More jsons!

main
Bob Mottram 2021-02-09 19:31:39 +00:00
parent e74682a0ba
commit 496e37bc91
1 changed files with 2 additions and 1 deletions

View File

@ -13539,7 +13539,8 @@ class PubServer(BaseHTTPRequestHandler):
# refuse to receive non-json content # refuse to receive non-json content
contentTypeStr = self.headers['Content-type'] contentTypeStr = self.headers['Content-type']
if not contentTypeStr.startswith('application/json') and \ if not contentTypeStr.startswith('application/json') and \
not contentTypeStr.startswith('application/activity+json'): not contentTypeStr.startswith('application/activity+json') and \
not contentTypeStr.startswith('application/ld+json'):
print("POST is not json: " + self.headers['Content-type']) print("POST is not json: " + self.headers['Content-type'])
if self.server.debug: if self.server.debug:
print(str(self.headers)) print(str(self.headers))