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
Some hosts convert object metadata keys (and even the entire corresponding HTTP header) to all-lowercase. This is irritating, but since both HTTP headers and Object Store metadata keys are case insensitive, it is not illegal.
MetadataTrait.php uses strpos to test if a header starts with METADATA_PREFIX (e.g. 'X-Object-Meta-') and therefore fails if the capitalization isn't exactly the same, making it seem that the metadata item isn't present.
Using stripos instead of strpos fixes this.
The text was updated successfully, but these errors were encountered:
Some hosts convert object metadata keys (and even the entire corresponding HTTP header) to all-lowercase. This is irritating, but since both HTTP headers and Object Store metadata keys are case insensitive, it is not illegal.
MetadataTrait.php uses strpos to test if a header starts with METADATA_PREFIX (e.g. 'X-Object-Meta-') and therefore fails if the capitalization isn't exactly the same, making it seem that the metadata item isn't present.
Using stripos instead of strpos fixes this.
The text was updated successfully, but these errors were encountered: