Skip to content

Commit

Permalink
remove httputil dump
Browse files Browse the repository at this point in the history
  • Loading branch information
greedy52 committed Dec 18, 2024
1 parent 3cba873 commit 57633ce
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/srv/alpnproxy/forward_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ import (
"log/slog"
"net"
"net/http"
"net/http/httputil"
"net/url"
"strings"

"github.com/gravitational/trace"
"github.com/sirupsen/logrus"
"golang.org/x/net/http/httpproxy"

apidefaults "github.com/gravitational/teleport/api/defaults"
Expand Down Expand Up @@ -177,9 +175,6 @@ func MatchAllRequests(req *http.Request) bool {
// MatchAWSRequests is a MatchFunc that returns true if request is an AWS API
// request.
func MatchAWSRequests(req *http.Request) bool {
if dump, err := httputil.DumpRequest(req, true); err == nil {
logrus.Debugf("=== dump req %s", string(dump))
}
return awsapiutils.IsAWSEndpoint(req.Host) &&
// Avoid proxying SSM session WebSocket requests and let the forward proxy
// send it directly to AWS.
Expand Down

0 comments on commit 57633ce

Please sign in to comment.