<blockquote>
<p>So just make it <code>&.type</code> maybe? So we assume it's straight XML if we can't get the type?</p>
</blockquote>
<p>Seems reasonable. It would be better if the mime type detection wasn't fooled by a BOM, but I haven't found any discussions on <a href="https://github.com/minad/mimemagic/">https://github.com/minad/mimemagic/</a> or in the upstream shared-mime-info to guide me towards better options.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2258?email_source=notifications&email_token=AAK2OLP6CEGLJ53YWHOP5HTP2OSLLA5CNFSM4HXW4KKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXW5ZRA#issuecomment-502127812">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPVSPN76I2MXXTM5VDP2OSLLANCNFSM4HXW4KKA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAK2OLNHBX5TLRPXM4KE34DP2OSLLA5CNFSM4HXW4KKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXW5ZRA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2258?email_source=notifications\u0026email_token=AAK2OLP6CEGLJ53YWHOP5HTP2OSLLA5CNFSM4HXW4KKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXW5ZRA#issuecomment-502127812",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2258?email_source=notifications\u0026email_token=AAK2OLP6CEGLJ53YWHOP5HTP2OSLLA5CNFSM4HXW4KKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXW5ZRA#issuecomment-502127812",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>