We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IN ALLOW_URL_FOPEN IS FALSE, THERE IS PRABLEM WITH GET MIM TYPE BECAUSE GET_HEADERS NOT ALLOWED.
FOLLOWING IS PATCH FOR TO WORK IT WITH CURL )))))
ADD IN VCARD.PHP LINE 234:
if ((bool) ini_get('allow_url_fopen') === true) { $headers = get_headers($url, 1); if (array_key_exists('Content-Type', $headers)) { $mimeType = $headers['Content-Type']; if (is_array($mimeType)) { $mimeType = end($mimeType); } } } else { $curl = curl_init(); curl_setopt_array( $curl, array( CURLOPT_HEADER => true, CURLOPT_NOBODY => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_URL => $url ) ); $mimeType= curl_getinfo($curl, CURLINFO_CONTENT_TYPE); curl_close( $curl ); }
GREETZ PAUL 187 (SORRY FOR BAD ENGLISH I AM 🥚 BROTHER)
The text was updated successfully, but these errors were encountered:
Hi paul, great for the help. Would you be able to create a merge request for it (eventually an additional unit test if possible)
Sorry, something went wrong.
Hello, Got same error (with a picture store using cloudfront).
Any update soon ?
Thanks, denis
No branches or pull requests
IN ALLOW_URL_FOPEN IS FALSE, THERE IS PRABLEM WITH GET MIM TYPE BECAUSE GET_HEADERS NOT ALLOWED.
FOLLOWING IS PATCH FOR TO WORK IT WITH CURL )))))
ADD IN VCARD.PHP LINE 234:
GREETZ PAUL 187 (SORRY FOR BAD ENGLISH I AM 🥚 BROTHER)
The text was updated successfully, but these errors were encountered: