@@ -20,7 +20,6 @@ type Server struct {
2020 linkCache LinkCache
2121 Compression bool
2222 ListfileUrlPrefix string
23- ListfileBasicAuth string
2423}
2524
2625func NewServer () * Server {
@@ -116,7 +115,7 @@ func (s *Server) HandleGetDownload(w http.ResponseWriter, req *http.Request) {
116115 return
117116 }
118117
119- zipDescriptor , err := retrieveZipDescriptorFromUrl (listfileUrl , s . ListfileBasicAuth )
118+ zipDescriptor , err := retrieveZipDescriptorFromUrl (listfileUrl )
120119 if err != nil {
121120 w .WriteHeader (http .StatusNotFound )
122121 w .Write ([]byte (`{"status":"error","error":"file not found"}` ))
@@ -126,12 +125,11 @@ func (s *Server) HandleGetDownload(w http.ResponseWriter, req *http.Request) {
126125 s .streamEntries (zipDescriptor , w , req )
127126}
128127
129- func retrieveZipDescriptorFromUrl (listfileUrl string , listfileBasicAuth string ) (* ZipDescriptor , error ) {
128+ func retrieveZipDescriptorFromUrl (listfileUrl string ) (* ZipDescriptor , error ) {
130129 req , err := http .NewRequest ("GET" , listfileUrl , nil )
131130 if err != nil {
132131 return nil , err
133132 }
134- req .SetBasicAuth ("" , listfileBasicAuth )
135133 req .Header .Set ("User-Agent" , fmt .Sprintf ("isic-zipstreamer/%s" , getVcsRevision ()))
136134 listfileResp , err := http .DefaultClient .Do (req )
137135 if err != nil {
0 commit comments