Skip to content

Commit

Permalink
Add headers validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennwc committed Dec 9, 2024
1 parent 75cada5 commit 49268a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions livekit/sip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 49268a7

Please sign in to comment.