At least on MinIO it can happen that documents have not just a simple content type like text/html but a multipart one like text/html; charset="utf-8". In this case, HTTP::Headers->content_type says:
potential parameters will be chopped off and returned as a separate value if in an array context.
This leads to "odd number of elements in anonymous hash" warnings and a failed get_keys call.
Forcing scalar context fixes it.
At least on MinIO it can happen that documents have not just a simple content type like
text/html
but a multipart one liketext/html; charset="utf-8"
. In this case,HTTP::Headers->content_type
says:This leads to "odd number of elements in anonymous hash" warnings and a failed get_keys call. Forcing scalar context fixes it.