control/controlhttp: remove ClientConn.UntrustedUpgradeHeaders

It was just added and unreleased but we've decided to go a different route.

Details are in 5e9e57ecf5.

Updates #5972

Change-Id: I49016af469225f58535f63a9b0fbe5ab6a5bf304
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2022-10-28 12:14:58 -07:00
committed by Brad Fitzpatrick
parent b2035a1dca
commit dfe67afb4a
3 changed files with 11 additions and 23 deletions

View File

@@ -5,8 +5,6 @@
package controlhttp
import (
"net/http"
"tailscale.com/control/controlbase"
)
@@ -17,10 +15,4 @@ import (
type ClientConn struct {
// Conn is the noise connection.
*controlbase.Conn
// UntrustedUpgradeHeaders are the HTTP headers seen in the
// 101 Switching Protocols upgrade response. They may be nil
// or even might've been tampered with by a middlebox.
// They should not be trusted.
UntrustedUpgradeHeaders http.Header
}