From e0d12bf5810a0cf0c4ed019d135d2e5db341d919 Mon Sep 17 00:00:00 2001 From: Dingjun Date: Mon, 24 Apr 2017 16:27:06 +0800 Subject: [PATCH] use my fork version of go-http-auth --- handler.go | 3 ++- routers.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/handler.go b/handler.go index 153b72f..df913cb 100644 --- a/handler.go +++ b/handler.go @@ -2,7 +2,7 @@ package main import ( "fmt" - auth "github.com/abbot/go-http-auth" + auth "github.com/fangdingjun/go-http-auth" "io" "log" "net" @@ -83,6 +83,7 @@ func (h *handler) handleHTTP(w http.ResponseWriter, r *http.Request) { var err error r.Header.Del("proxy-connection") + r.Header.Del("proxy-authorization") if r.ProtoMajor == 2 { r.URL.Scheme = "http" diff --git a/routers.go b/routers.go index 43ea74e..ac10b4e 100644 --- a/routers.go +++ b/routers.go @@ -3,7 +3,7 @@ package main import ( "crypto/tls" "fmt" - auth "github.com/abbot/go-http-auth" + auth "github.com/fangdingjun/go-http-auth" "github.com/fangdingjun/gofast" "github.com/gorilla/mux" "log"