Skip to content

Commit 3a6f544

Browse files
committed
Remove unnecessary prints
1 parent 87048f3 commit 3a6f544

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ func setContentType(r *http.Request, resp *http.Response) {
156156
func handleRequest(r *http.Request, ctx *goproxy.ProxyCtx) (*http.Request, *http.Response) {
157157
// Remove port from host if exists (old apps don't clean it before sending requests?)
158158
r.URL.Host = strings.Split(r.URL.Host, ":")[0]
159-
fmt.Printf("Proxy Request: %s\n", r.URL.Host+r.URL.Path)
160159

161160
// Copy the original request
162161
gamezipRequest := &http.Request{
@@ -186,6 +185,8 @@ func handleRequest(r *http.Request, ctx *goproxy.ProxyCtx) (*http.Request, *http
186185

187186
if proxyResp.StatusCode < 400 {
188187
fmt.Printf("\tServing from Zip...\n")
188+
} else if proxyResp.StatusCode >= 500 {
189+
fmt.Println("Gamezip Server Error: ", proxyResp.StatusCode)
189190
}
190191

191192
// Check Legacy

zipfs

0 commit comments

Comments
 (0)