react-native-pdf icon indicating copy to clipboard operation
react-native-pdf copied to clipboard

Load Complete callback doesn't happen due to case issue

Open GaryGiebler opened this issue 4 months ago • 2 comments

react-native 0.73.x

react-native-pdf version 6.7.5

What platform does your issue occur on? both

The load complete callback doesn't happen because the code is trying to match case using upper case letters while the actual case is lower case.

Here's the fixed code (line 291 in index.js):

if (res && res.respInfo && res.respInfo.headers && !res.respInfo.headers["content-encoding"] && !res.respInfo.headers["transfer-encoding"] && res.respInfo.headers["content-length"]) { const expectedContentLength = res.respInfo.headers["content-length"];

GaryGiebler avatar Oct 16 '24 14:10 GaryGiebler