Add a stub sid to probetest answer

This will prevent calls to DecodeAnswerRequest from returning an error
even though the sid is not needed for the probetest.
This commit is contained in:
Cecylia Bocovich 2020-11-18 15:57:51 -05:00
parent 0bed9c48b7
commit cf2eb5e6c0

View file

@ -131,7 +131,7 @@ func probeHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusInternalServerError)
return
}
body, err := messages.EncodeAnswerRequest(answer, "")
body, err := messages.EncodeAnswerRequest(answer, "stub-sid")
if err != nil {
log.Printf("Error making WebRTC connection: %s", err)
w.WriteHeader(http.StatusInternalServerError)