mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-24 12:01:56 -08:00
15 lines
268 B
Go
15 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)
|
|
}
|