mailto links don't have a query property, instead they use headers, e.g.:
uri = URI('mailto:hello@example.com?subject=hi')
uri.headers #=> [['subject', 'hi']]
The current Cleaner#clean_url fails on mailto links and wouldn't filter the headers if it did succeed. This PR updates it to handle filtering the headers in mailto links
Goal
mailto links don't have a
query
property, instead they useheaders
, e.g.:The current
Cleaner#clean_url
fails on mailto links and wouldn't filter the headers if it did succeed. This PR updates it to handle filtering the headers in mailto links