Skip to content

Commit

Permalink
Fixed possible nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 28, 2024
1 parent 51c5d51 commit abda470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/webrtc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ func whepClient(url string) (core.Producer, error) {
}

req, err := http.NewRequest("POST", url, strings.NewReader(offer))
req.Header.Set("Content-Type", MimeSDP)
if err != nil {
return nil, err
}
req.Header.Set("Content-Type", MimeSDP)

client := http.Client{Timeout: time.Second * 5000}
defer client.CloseIdleConnections()
Expand Down

0 comments on commit abda470

Please sign in to comment.