tschoffelen / php-pkpass

💳 PHP class for creating passes for Wallet on iOS.
https://includable.com
MIT License
901 stars 185 forks source link

Pass no works fine on HTTPS #100

Closed linkito87 closed 3 years ago

linkito87 commented 4 years ago

The $pass->create(true) not working on HTTPS protocol. You must click many times to get it to work... Debugging with the iPhone connected, throw this error: http load failed, 51/20348 bytes buffer

Removing this line of PKPass.php works perfect on HTTPS.

header('Content-Length: ' . $size);

tschoffelen commented 4 years ago

Hi @linkito87, sounds like your server is doing something special with the output before sending it to the browser.

Could you submit a PR to take out that line?

tschoffelen commented 3 years ago

Fixed in #103.