1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2024-12-29 00:54:52 +09:00

When verifying HTTP sig, require ActivityPub-Actor to be signed only if present

This commit is contained in:
fr33domlover 2019-03-16 15:48:25 +00:00
parent 475e398d6d
commit a9eaf35d5e

View file

@ -599,7 +599,8 @@ instance YesodRemoteActorStore App where
instance YesodHttpSig App where
data HttpSigVerResult App = HttpSigVerResult (Either String FedURI)
httpSigVerHeaders = const [hRequestTarget, hHost, hActivityPubActor]
httpSigVerRequiredHeaders = const [hRequestTarget, hHost]
httpSigVerWantedHeaders = const [hActivityPubActor]
httpSigVerSeconds =
fromIntegral . toSeconds . appHttpSigTimeLimit . appSettings
where