add tls headers #170

Merged
vtolstov merged 2 commits from tls_header into v3 2023-08-03 10:43:48 +03:00
Showing only changes of commit 4d378bbd51 - Show all commits

View File

@ -120,6 +120,7 @@ func (h *Server) HTTPHandlerFunc(handler interface{}) (http.HandlerFunc, error)
md["Host"] = r.Host md["Host"] = r.Host
md["RequestURI"] = r.RequestURI md["RequestURI"] = r.RequestURI
if r.TLS != nil { if r.TLS != nil {
md["TLS"] = "true"
md["TLS_ALPN"] = r.TLS.NegotiatedProtocol md["TLS_ALPN"] = r.TLS.NegotiatedProtocol
md["TLS_ServerName"] = r.TLS.ServerName md["TLS_ServerName"] = r.TLS.ServerName
} }