From 49268a7f9e1a4cb50396487a84577a05d9dffdf2 Mon Sep 17 00:00:00 2001 From: Denys Smirnov Date: Mon, 9 Dec 2024 19:23:29 +0200 Subject: [PATCH] Add headers validation. --- livekit/sip.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/livekit/sip.go b/livekit/sip.go index 97743fc6..3ef4841d 100644 --- a/livekit/sip.go +++ b/livekit/sip.go @@ -221,6 +221,9 @@ func (p *CreateSIPParticipantRequest) Validate() error { if p.RoomName == "" { return errors.New("missing room name") } + if err := validateHeaderKeys(p.Headers); err != nil { + return err + } return nil }