Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
fix: do not redirect trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
AH-dark committed Jan 7, 2024
1 parent f750428 commit 5967bed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func NewServer(ctx context.Context, vip *viper.Viper, promRegistry *promclient.R
hertzprometheus.WithDisableServer(true),
)),
server.WithTransport(netpoll.NewTransporter),
server.WithRedirectTrailingSlash(false),
)
svr.Use(hertztracing.ServerMiddleware(cfg))

Expand Down

0 comments on commit 5967bed

Please sign in to comment.