Skip to content

Commit

Permalink
Hotfix double gzip on mobile for Content Nodes (#6687)
Browse files Browse the repository at this point in the history
  • Loading branch information
theoilie authored Nov 14, 2023
1 parent 48154d5 commit ae9e668
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions mediorum/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,10 @@ func New(config MediorumConfig) (*MediorumServer, error) {
}

func setResponseACAOHeaderFromRequest(req http.Request, resp echo.Response) {
resp.Header().Set(echo.HeaderAccessControlAllowOrigin,
req.Header.Get(echo.HeaderOrigin))
resp.Header().Set(
echo.HeaderAccessControlAllowOrigin,
req.Header.Get(echo.HeaderOrigin),
)
}

func ACAOHeaderOverwriteMiddleware(next echo.HandlerFunc) echo.HandlerFunc {
Expand Down
1 change: 0 additions & 1 deletion monitoring/uptime/uptime.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ func (u *Uptime) Start() {
e.Use(middleware.Recover())
e.Use(middleware.Logger())
e.Use(middleware.CORS())
e.Use(middleware.Gzip())

e.Static("/up", "/app/node-ui/dist")

Expand Down

0 comments on commit ae9e668

Please sign in to comment.