From 23ae1fe7231737bb01a958123e69a3cf59127a48 Mon Sep 17 00:00:00 2001 From: Tolga Ceylan Date: Wed, 10 Jan 2018 12:32:19 -0800 Subject: [PATCH] fn: removed dead code (#672) --- api/agent/call.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/api/agent/call.go b/api/agent/call.go index 9bcb606dc..0db11d1a7 100644 --- a/api/agent/call.go +++ b/api/agent/call.go @@ -48,20 +48,6 @@ type Param struct { } type Params []Param -func fixupRequestURL(req *http.Request) string { - if req.URL.Scheme == "" { - if req.TLS == nil { - req.URL.Scheme = "http" - } else { - req.URL.Scheme = "https" - } - } - if req.URL.Host == "" { - req.URL.Host = req.Host - } - return req.URL.String() -} - func FromRequest(appName, path string, req *http.Request) CallOpt { return func(a *agent, c *call) error { app, err := a.da.GetApp(req.Context(), appName)