Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gzip.WithExcludedPaths missing since last merge #35

Open
er-himanshujain opened this issue Nov 18, 2019 · 1 comment
Open

gzip.WithExcludedPaths missing since last merge #35

er-himanshujain opened this issue Nov 18, 2019 · 1 comment

Comments

@er-himanshujain
Copy link

er-himanshujain commented Nov 18, 2019

Hi, is there any alternative to add below statement?
r.Use(gzip.Gzip(gzip.DefaultCompression, gzip.WithExcludedPaths([]string{"/admin/", "/monitor/"})))

Since today, when I am trying to build, below issues occurred:

  1. Unable to fetch through dep ensure for master branch, getting below error:
    Solving failure: No versions of github.com/gin-contrib/gzip met constraints:
    v0.0.1: Could not introduce github.com/gin-contrib/[email protected], as it is not allowed by constraint master from project dailyhunt.in/ugc/groups-service.
    master: unable to update checked out version: fatal: reference is not a tree: 4b4a6f0
    : command failed: [git checkout 4b4a6f0]: exit status 128

  2. After resolving through go get, got below compilation error:
    r.Use(gzip.Gzip(gzip.DefaultCompression, gzip.WithExcludedPaths([]string{"/admin/", "/monitor/"})))

too many arguments in call to gzip.Gzip
undefined: gzip.WithExcludedPaths

@hyingreborn
Copy link

hyingreborn commented Jan 23, 2020

I had the same problem...

@appleboy Can you release a new tag,v0.0.2 ? This package in my local miss the handler.go and options.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants