use my fork version of go-http-auth

master
Dingjun 8 years ago
parent 41ea1f20ca
commit e0d12bf581

@ -2,7 +2,7 @@ package main
import ( import (
"fmt" "fmt"
auth "github.com/abbot/go-http-auth" auth "github.com/fangdingjun/go-http-auth"
"io" "io"
"log" "log"
"net" "net"
@ -83,6 +83,7 @@ func (h *handler) handleHTTP(w http.ResponseWriter, r *http.Request) {
var err error var err error
r.Header.Del("proxy-connection") r.Header.Del("proxy-connection")
r.Header.Del("proxy-authorization")
if r.ProtoMajor == 2 { if r.ProtoMajor == 2 {
r.URL.Scheme = "http" r.URL.Scheme = "http"

@ -3,7 +3,7 @@ package main
import ( import (
"crypto/tls" "crypto/tls"
"fmt" "fmt"
auth "github.com/abbot/go-http-auth" auth "github.com/fangdingjun/go-http-auth"
"github.com/fangdingjun/gofast" "github.com/fangdingjun/gofast"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"log" "log"

Loading…
Cancel
Save