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 389216f commit 2e3ab47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ func proxyRequest(fullSubdomain, path string, buffer *bytes.Buffer, r *http.Requ
}
}

debugLog.Printf("Received headers: %v", headers)
debugLog.Printf("Content-Encoding: %s", resp.Header.Get("Content-Encoding"))

if resp.Header.Get("Content-Encoding") == "br" {
// Decompress Brotli data
decompressedData := brotli.NewReader(resp.Body)
Expand Down

0 comments on commit 2e3ab47

Please sign in to comment.