Skip to content

Commit

Permalink
http_(proxy,server) remove TunnelScheme
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatczuk committed Sep 11, 2023
1 parent dcb33d4 commit c1ffc16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion http_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (c *HTTPProxyConfig) Validate() error {
if err := c.HTTPServerConfig.Validate(); err != nil {
return err
}
if c.Protocol != HTTPScheme && c.Protocol != HTTPSScheme && c.Protocol != TunnelScheme {
if c.Protocol != HTTPScheme && c.Protocol != HTTPSScheme {
return fmt.Errorf("unsupported protocol: %s", c.Protocol)
}
if !c.ProxyLocalhost.isValid() {
Expand Down
7 changes: 3 additions & 4 deletions http_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ import (
type Scheme string

const (
HTTPScheme Scheme = "http"
HTTPSScheme Scheme = "https"
HTTP2Scheme Scheme = "h2"
TunnelScheme Scheme = "tunnel"
HTTPScheme Scheme = "http"
HTTPSScheme Scheme = "https"
HTTP2Scheme Scheme = "h2"
)

func (s Scheme) String() string {
Expand Down

0 comments on commit c1ffc16

Please sign in to comment.