Browse Source

auto update script executed

Toby Chui 1 year ago
parent
commit
8376dba8eb
2 changed files with 1 additions and 4 deletions
  1. 1 1
      mod/forwardproxy/cproxy/default_handler.go
  2. 0 3
      mod/forwardproxy/forwardproxy.go

+ 1 - 1
mod/forwardproxy/cproxy/default_handler.go

@@ -27,7 +27,7 @@ func (this *defaultHandler) ServeHTTP(response http.ResponseWriter, request *htt
 
 	} else if !this.filter.IsAuthorized(response, request) {
 		this.meter.Measure(MeasurementUnauthorizedRequest)
-		writeResponseStatus(response, http.StatusUnauthorized)
+		//writeResponseStatus(response, http.StatusUnauthorized)
 
 	} else if client := this.clientConnector.Connect(response); client == nil {
 		this.meter.Measure(MeasurementClientConnectionFailed)

+ 0 - 3
mod/forwardproxy/forwardproxy.go

@@ -1,7 +1,6 @@
 package forwardproxy
 
 import (
-	"fmt"
 	"net/http"
 
 	"imuslab.com/zoraxy/mod/auth"
@@ -16,7 +15,5 @@ type Handler struct {
 }
 
 func (it ZrFilter) IsAuthorized(w http.ResponseWriter, r *http.Request) bool {
-	u, p, ok := r.BasicAuth()
-	fmt.Println(u, p, ok)
 	return true
 }