Commit cf2eb5e6 authored by Cecylia Bocovich's avatar Cecylia Bocovich
Browse files

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.
parent 0bed9c48
...@@ -131,7 +131,7 @@ func probeHandler(w http.ResponseWriter, r *http.Request) { ...@@ -131,7 +131,7 @@ func probeHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusInternalServerError) w.WriteHeader(http.StatusInternalServerError)
return return
} }
body, err := messages.EncodeAnswerRequest(answer, "") body, err := messages.EncodeAnswerRequest(answer, "stub-sid")
if err != nil { if err != nil {
log.Printf("Error making WebRTC connection: %s", err) log.Printf("Error making WebRTC connection: %s", err)
w.WriteHeader(http.StatusInternalServerError) w.WriteHeader(http.StatusInternalServerError)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment