mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-05 23:56:54 +08:00
16 lines
265 B
Go
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)
|
|
}
|