Skip to content

Commit

Permalink
Merge pull request #40 from everywall/39-request-header-fields-too-large
Browse files Browse the repository at this point in the history
fix request header fields to large
  • Loading branch information
mms-gianni authored Nov 15, 2023
2 parents 55284f0 + f4060c3 commit 191279c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions handlers/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ func ProxySite(rulesetPath string) fiber.Handler {
return c.SendString(err.Error())
}

c.Set("Content-Type", resp.Header.Get("Content-Type"))
c.Set("Content-Security-Policy", resp.Header.Get("Content-Security-Policy"))
c.Cookie(&fiber.Cookie{})
c.Set("Content-Type", resp.Header.Get("Content-Type"))
c.Set("Content-Security-Policy", resp.Header.Get("Content-Security-Policy"))

return c.SendString(body)
}
Expand Down

0 comments on commit 191279c

Please sign in to comment.