minor fix

This commit is contained in:
rui.zheng
2017-08-05 14:33:35 +08:00
parent 821ab4d3b7
commit cfd1223550
2 changed files with 12 additions and 6 deletions
+3
View File
@@ -109,6 +109,9 @@ func (h *httpHandler) Handle(conn net.Conn) {
}
u, p, _ := basicProxyAuth(req.Header.Get("Proxy-Authorization"))
if Debug && (u != "" || p != "") {
log.Logf("[http] %s - %s : Authorization: '%s' '%s'", conn.RemoteAddr(), req.Host, u, p)
}
if !authenticate(u, p, h.options.Users...) {
log.Logf("[http] %s <- %s : proxy authentication required", conn.RemoteAddr(), req.Host)
resp := "HTTP/1.1 407 Proxy Authentication Required\r\n" +