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