fix content type accept
This commit is contained in:
parent
fca5407505
commit
334a2502b8
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ checkContentTypeAccept request =
|
|||
case lookup Twain.hAccept request.requestHeaders of
|
||||
Just bs ->
|
||||
("application/activity+json" `BS.isInfixOf` bs)
|
||||
|| ( ("application/activity+json" `BS.isInfixOf` bs)
|
||||
|| ( ("application/ld+json" `BS.isInfixOf` bs)
|
||||
&& ("profile=\"https://www.w3.org/ns/activitystreams\"" `BS.isInfixOf` bs)
|
||||
)
|
||||
Nothing -> False
|
||||
|
|
Loading…
Add table
Reference in a new issue