mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
parent
6a3b92b701
commit
1394ea09f0
1 changed files with 1 additions and 1 deletions
|
|
@ -498,7 +498,7 @@ func (w *gzipResponseWriter) init() {
|
|||
hdr := w.resp.Header()
|
||||
length := hdr.Get("content-length")
|
||||
if len(length) > 0 {
|
||||
if n, err := strconv.ParseUint(length, 10, 64); err != nil {
|
||||
if n, err := strconv.ParseUint(length, 10, 64); err == nil {
|
||||
w.hasLength = true
|
||||
w.contentLength = n
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue