<p dir="auto">This refactors our trace file format detection so that we only do it in one and then adjusts that code to work around <a href="https://bugs.astron.com/view.php?id=643" rel="nofollow">https://bugs.astron.com/view.php?id=643</a> which otherwise means that we fail to identify zip files on systems using version 5.46 of the file command.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5930'>https://github.com/openstreetmap/openstreetmap-website/pull/5930</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5930/commits/b236ccd8296d7b6583d15391d47964669ebcef60" class="commit-link">b236ccd</a> Use pre-computed content type in trace#xml_file</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5930/commits/dd57e8db4d8ebcde5964a8baf489ebf93e557842" class="commit-link">dd57e8d</a> Workaround bug in file 5.46</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5930/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5930/files#diff-49ff8e13eb2bff9ffd834dad7421f568b40186cb58b28e7eac6b3e9168ec8759">app/models/trace.rb</a>
(31)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5930.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5930.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5930.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5930.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5930">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPFHNDKK2J7STXRMRT2ZK44TAVCNFSM6AAAAAB3BNUWBWVHI2DSMVQWIX3LMV43ASLTON2WKOZSHE4TCNBUGMYDANI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOVHUZO3446XLCBNWL2ZK44TA5CNFSM6AAAAAB3BNUWBWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLETOMHU.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5930</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5930",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5930",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>