mirror of
https://github.com/bluenviron/mediamtx
synced 2025-03-04 19:37:52 +00:00
16 lines
268 B
Go
16 lines
268 B
Go
package httpserv
|
|
|
|
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)
|
|
}
|