mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
hls: add Server header
This commit is contained in:
parent
ef3fab477e
commit
b65d715f0b
2 changed files with 8 additions and 7 deletions
|
|
@ -329,10 +329,10 @@ func (a *api) mwLog(ctx *gin.Context) {
|
|||
blw := &logWriter{ResponseWriter: ctx.Writer}
|
||||
ctx.Writer = blw
|
||||
|
||||
ctx.Next()
|
||||
|
||||
ctx.Writer.Header().Set("Server", "rtsp-simple-server")
|
||||
|
||||
ctx.Next()
|
||||
|
||||
var buf bytes.Buffer
|
||||
fmt.Fprintf(&buf, "%s %d %s\n", ctx.Request.Proto, ctx.Writer.Status(), http.StatusText(ctx.Writer.Status()))
|
||||
ctx.Writer.Header().Write(&buf)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue