Corrupted downloads after each update of the plugin
-
Hi,
my site is hosted by Siteground, the web server is nginx. After each update of the plugin, I have to “patch” one of the files so that the downloads can work properly. If I do not patch this file, when the file for which the plugin generates a link is downloaded it is with very small size (the original file is an exe file, 35MB) so it looks like a corrupted download. In fact, if I change the extension of the downloaded file to txt, then I can open it and see that there is a 403 error (forbidden).
The file that I patch is job\ed-downloads.php and I insert this code after line 46curl_setopt($ch, CURLOPT_URL, $url); //fix 403 error for nginx curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.1 Safari/537.11');
Would it be possible to include this “patch” in future updates of the plugin?
Thanks
- The topic ‘Corrupted downloads after each update of the plugin’ is closed to new replies.