Files
rtsp-simple-server/internal/protocols/httpp/handler_server_header.go
2024-02-13 13:04:56 +01:00

16 lines
265 B
Go

package httpp
import (
"net/http"
)
// set the Server header.
type handlerServerHeader struct {
http.Handler
}
func (h *handlerServerHeader) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Server", "mediamtx")
h.Handler.ServeHTTP(w, r)
}