Patching redirection bug

+ Added wip basic auth editor custom exception rules
+ Added custom logic to handle apache screw up redirect header
This commit is contained in:
Toby Chui
2023-08-20 14:50:25 +08:00
parent 70adadf129
commit a3d55a3274
5 changed files with 36 additions and 6 deletions

View File

@@ -644,7 +644,7 @@ func HandleIncomingPortSet(w http.ResponseWriter, r *http.Request) {
newIncomingPortInt, err := strconv.Atoi(newIncomingPort)
if err != nil {
utils.SendErrorResponse(w, "invalid incoming port given")
utils.SendErrorResponse(w, "Invalid incoming port given")
return
}
@@ -652,7 +652,7 @@ func HandleIncomingPortSet(w http.ResponseWriter, r *http.Request) {
if dynamicProxyRouter.Root == nil || dynamicProxyRouter.Root.Domain == "" {
//Check if proxy root is set before checking recursive listen
//Fixing issue #43
utils.SendErrorResponse(w, "Proxy root not set")
utils.SendErrorResponse(w, "Set Proxy Root before changing inbound port")
return
}