validate request before queueing for delivery

This commit is contained in:
kim 2024-04-05 15:37:28 +01:00
parent 9ce0ffc8bd
commit 0f4c4257ed

View file

@ -151,6 +151,11 @@ func (t *transport) prepare(
r.Header.Add("Content-Type", string(apiutil.AppActivityLDJSON))
r.Header.Add("Accept-Charset", "utf-8")
// Validate the request before queueing for delivery.
if err := httpclient.ValidateRequest(r); err != nil {
return nil, err
}
return &delivery.Delivery{
ActorID: actorID,
ObjectID: objectID,