#Failing to decode image from response - zlib invalid header
9 messages · Page 1 of 1 (latest)
@keen spade it reads correctly
00000000 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 PNG IHDR
00000010 00 00 00 38 00 00 00 13 08 02 00 00 00 4a 8f 59 8 J Y
00000020 bc 00 00 00 04 49 44 41 54 00 00 00 01 9d 24 d7 IDAT $
00000030 91 00 00 00 00 49 45 4e 44 ae 42 60 82 IEND B`
body: 89504e470d0a1a0a0000000d49484452000000380000001308020000004a8f59bc0000000449444154000000019d24d7910000000049454e44ae426082
doesn’t seem to indicate it is compressed
Hmm, any ideas on what to try ?
how are you making the request
http.NewRequest
Raw request:
GET /imgpath HTTP/1.1
Host: redacted.com
Sec-Ch-Ua: "Not?A_Brand";v="8", "Chromium";v="108", "Google Chrome";v="108"
Sec-Ch-Ua-Mobile: ?0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Sec-Ch-Ua-Platform: "macOS"
Accept: image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: no-cors
Sec-Fetch-Dest: image
Referer: https://redacted.com
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
have you already consumed the reader?