Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1349 from akatashev/fix_reverse_proxy_authorization
Browse files Browse the repository at this point in the history
Remove resetting Auth credentials in reverse-proxy
  • Loading branch information
shlomi-noach authored May 3, 2021
2 parents fd4bd01 + 40e8a41 commit c85d65f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions go/http/raft_reverse_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ import (
"net/http"
"net/http/httputil"
"net/url"
"strings"

"github.com/openark/golib/log"

"github.com/go-martini/martini"
"github.com/openark/orchestrator/go/config"
"github.com/openark/orchestrator/go/raft"
)

Expand Down Expand Up @@ -39,10 +37,6 @@ func raftReverseProxy(w http.ResponseWriter, r *http.Request, c martini.Context)
return
}
r.Header.Del("Accept-Encoding")
switch strings.ToLower(config.Config.AuthenticationMethod) {
case "basic", "multi":
r.SetBasicAuth(config.Config.HTTPAuthUser, config.Config.HTTPAuthPassword)
}
proxy := httputil.NewSingleHostReverseProxy(url)
proxy.Transport, err = orcraft.GetRaftHttpTransport()
if err != nil {
Expand Down

0 comments on commit c85d65f

Please sign in to comment.