Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Smuu <[email protected]>
  • Loading branch information
smuu committed Oct 30, 2023
1 parent 35ed64d commit 389216f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ func replaceDomainInResponse(originalSubdomain, replaceSubdomain, originalDomain
buffer.Reset()
buffer.WriteString(replacedBody)

debugLog.Printf("Replaced %s with %s in response", fullReplace, fullOriginal)
debugLog.Printf("--------------------")
debugLog.Printf(body)
debugLog.Printf("--------------------")
debugLog.Printf(replacedBody)
debugLog.Printf("--------------------")
}

func proxyRequest(fullSubdomain, path string, buffer *bytes.Buffer, r *http.Request) (int, map[string]string, error) {
Expand Down

0 comments on commit 389216f

Please sign in to comment.