You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are trying to create a VCard.. Then you are in the right place! I have created a nuget package with helps you to achieve it.. I have given the implementation in GitHub readme.md file..
You can install it using the following command using the package manager console..
I had exactly the same problem. I think adding array_change_key_case() would be ideal.
After that, every header can be accessed using its lowercase name. I opened PR #210.
$headers = array_change_key_case(get_headers($url, 1));
if (array_key_exists('content-type', $headers)) {
$mimeType = $headers['content-type'];
if (is_array($mimeType)) {
$mimeType = end($mimeType);
}
}
In VCard::addMedia() on line
239
and240
, the'Content-Type'
lookup should be case insensitive.Header
content-type: image/jpeg
will throw unexpected error.The text was updated successfully, but these errors were encountered: