webrtc muxer: fix HTTP status code of index page
Status code was 404, not is 200.
This commit is contained in:
parent
6d14b011c4
commit
5a0143056a
|
@ -374,6 +374,7 @@ func (s *webRTCServer) onRequest(ctx *gin.Context) {
|
||||||
switch fname {
|
switch fname {
|
||||||
case "":
|
case "":
|
||||||
ctx.Writer.Header().Set("Content-Type", "text/html")
|
ctx.Writer.Header().Set("Content-Type", "text/html")
|
||||||
|
ctx.Writer.WriteHeader(http.StatusOK)
|
||||||
ctx.Writer.Write(webrtcIndex)
|
ctx.Writer.Write(webrtcIndex)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue