use HeaderCollection::toArray to fix lowercased header names