Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
fix encoding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio committed Jun 14, 2023
1 parent 5622440 commit 841a488
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"io"
"log"
"os"
"strings"
"time"

http "github.com/bogdanfinn/fhttp"
Expand Down Expand Up @@ -183,6 +184,9 @@ func proxy(c *gin.Context) {
defer response.Body.Close()
// Copy headers from response
for k, v := range response.Header {
if strings.ToLower(k) == "content-encoding" {
continue
}
c.Header(k, v[0])
}
// Get status code
Expand Down

0 comments on commit 841a488

Please sign in to comment.