mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-24 03:51:57 -08:00
parent
61d300396d
commit
efcc4c4e65
13 changed files with 200 additions and 105 deletions
15
internal/httpserv/handler_server_header.go
Normal file
15
internal/httpserv/handler_server_header.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue