Skip to content

Instantly share code, notes, and snippets.

@LucaTNT
Created June 18, 2016 15:10
Show Gist options
  • Save LucaTNT/b871743354340dc18009a9acd515c7ba to your computer and use it in GitHub Desktop.
Save LucaTNT/b871743354340dc18009a9acd515c7ba to your computer and use it in GitHub Desktop.
Patch to podPress that allows serving podcast mp3's over HTTPS. See https://lucatnt.com/2016/06/add-ssl-support-to-podpress/ for details.
1028c1028
< if ( $aURL['scheme'] != 'http' ) {
---
> if ( $aURL['scheme'] != 'http' && $aURL['scheme'] != 'https' ) {
1617,1618c1617,1618
< // make sure we get the header
< curl_setopt($ch, CURLOPT_HEADER, TRUE);
---
> // make sure we DON'T get the header
> curl_setopt($ch, CURLOPT_HEADER, FALSE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment