Compare commits
No commits in common. "main" and "v0.1.1" have entirely different histories.
1 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,10 @@ import (
|
||||||
func main() {
|
func main() {
|
||||||
router := gin.Default()
|
router := gin.Default()
|
||||||
|
|
||||||
|
options := ginzip.DefaultOptions()
|
||||||
|
options.BrotliLevel = ""
|
||||||
|
options.GzipLevel = ""
|
||||||
|
|
||||||
ui := router.Group("/", ginzip.New(ginzip.DefaultOptions()))
|
ui := router.Group("/", ginzip.New(ginzip.DefaultOptions()))
|
||||||
ui.GET("/", getTestHandler("Hello World (should be compressed)"))
|
ui.GET("/", getTestHandler("Hello World (should be compressed)"))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue