소스 검색

auto update script executed

Toby Chui 1 년 전
부모
커밋
31478b67b8
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      mod/dynamicproxy/Server.go

+ 2 - 1
mod/dynamicproxy/Server.go

@@ -1,6 +1,7 @@
 package dynamicproxy
 
 import (
+	"fmt"
 	"net/http"
 	"os"
 	"strings"
@@ -115,7 +116,7 @@ func (h *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 		h.proxyRequest(w, r, targetProxyEndpoint)
 	} else if !strings.HasSuffix(proxyingPath, "/") {
 		potentialProxtEndpoint := h.Parent.getTargetProxyEndpointFromRequestURI(proxyingPath + "/")
-
+		fmt.Println(strings.HasSuffix(proxyingPath, "/"))
 		if potentialProxtEndpoint != nil {
 			//Missing tailing slash. Redirect to target proxy endpoint
 			http.Redirect(w, r, r.RequestURI+"/", http.StatusTemporaryRedirect)