kopia lustrzana https://gitlab.com/marnanel/chapeau
validate() can now have Content-Type missing in the headers;
it defaults to "application/activity+json".trilby-heavy
rodzic
1d70f9dd43
commit
0c8a0c0dae
|
@ -122,7 +122,8 @@ def validate(path, headers, body, is_local_user):
|
|||
for f,v in headers.items()])
|
||||
|
||||
message = IncomingMessage(
|
||||
content_type = headers['content-type'],
|
||||
content_type = headers.get('content-type',
|
||||
'application/activity+json'),
|
||||
date = headers.get('date', ''),
|
||||
host = headers.get('host', ''),
|
||||
path = path,
|
||||
|
|
Ładowanie…
Reference in New Issue