use my fork version of go-http-auth

master
Dingjun 8 years ago
parent 41ea1f20ca
commit e0d12bf581

@ -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"

@ -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"

Loading…
Cancel
Save