mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-24 20:11:56 -08:00
move protocol-related code into internal/protocols (#2572)
This commit is contained in:
parent
3ebc585539
commit
99bc327d67
126 changed files with 73 additions and 73 deletions
15
internal/protocols/httpserv/handler_server_header.go
Normal file
15
internal/protocols/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