mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:18:52 +00:00
validate request before queueing for delivery
This commit is contained in:
parent
9ce0ffc8bd
commit
0f4c4257ed
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue