webrtc muxer: fix HTTP status code of index page

Status code was 404, not is 200.
This commit is contained in:
aler9 2023-01-06 18:47:52 +01:00
parent 6d14b011c4
commit 5a0143056a
1 changed files with 1 additions and 0 deletions

View File

@ -374,6 +374,7 @@ func (s *webRTCServer) onRequest(ctx *gin.Context) {
switch fname {
case "":
ctx.Writer.Header().Set("Content-Type", "text/html")
ctx.Writer.WriteHeader(http.StatusOK)
ctx.Writer.Write(webrtcIndex)
return