Closed djcass44 closed 10 months ago
In my environment we are behind a corporate proxy and have to pull Jars through a cache service (think Artifactory or Nexus). This service returns data using chunked encoding and therefore doesn't set the Content-Length header.
Content-Length
This library depends on ContentLength being set. If not set, Go sets it to -1 which causes the zip.NewReader call to fail instantly.
-1
zip.NewReader
It should be easily fixable by simply using len(bodyBytes) when contentLength < 0. I will open an MR alongside this issue.
len(bodyBytes)
contentLength < 0
Released with v1.25.0
In my environment we are behind a corporate proxy and have to pull Jars through a cache service (think Artifactory or Nexus). This service returns data using chunked encoding and therefore doesn't set the
Content-Length
header.This library depends on ContentLength being set. If not set, Go sets it to
-1
which causes thezip.NewReader
call to fail instantly.It should be easily fixable by simply using
len(bodyBytes)
whencontentLength < 0
. I will open an MR alongside this issue.