From 496e37bc916f6a7dc5bb4b9df143826d388cbec2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 9 Feb 2021 19:31:39 +0000 Subject: [PATCH] More jsons! --- daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 43027952f..7afb725b9 100644 --- a/daemon.py +++ b/daemon.py @@ -13539,7 +13539,8 @@ class PubServer(BaseHTTPRequestHandler): # refuse to receive non-json content contentTypeStr = self.headers['Content-type'] 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']) if self.server.debug: print(str(self.headers))