goproxyio/goproxy

The zip file is a text file when the HTTP response code is 302

mumuhhh opened this issue · 9 comments

for example

github.com/go-sql-driver/mysql/@v/v1.5.0.zip
The contents of the cache file:
<a href="https://goproxy.onetool.net/github.com/go-sql-driver/mysql/@v/v1.5.0.zip">Found</a>.
This is a text file , not a valid zip file

what is cmd? go get github.com/go-sql-driver/mysql?

or you access the zip file directly?

https://goproxy.io/github.com/go-sql-driver/mysql/@v/v1.5.0.zip redirection to https://goproxy.onetool.net/github.com/go-sql-driver/mysql/@v/v1.5.0.zip causes the cache zip content to be <a href="https://goproxy.onetool.net/github.com/go-sql-driver/mysql/@v/v1.5.0.zip">Found</a>.. The zip file is a text file

It's caused by site redirection,goproxy service download cache file is an invalid zip file

图片

图片

sorry
I'm talking about files cached by the goproxy service

1598840320(1)
The cache file is invalid zip, when proxy use https://goproxy.io/

oiooj commented

@mumuhhh Yes, maybe this is a bug introduced by #153, thanks.

oiooj commented

@mumuhhh We fixed this issue at master branch, please pull the latest code and rebuild it. we should add more tests for this.
Thanks again.