move protocol-related code into internal/protocols (#2572)

This commit is contained in:
Alessandro Ros 2023-10-26 21:46:18 +02:00 committed by GitHub
parent 3ebc585539
commit 99bc327d67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
126 changed files with 73 additions and 73 deletions

View file

@ -1,15 +0,0 @@
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)
}