<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 16, 2014 at 8:49 AM, Max Leske <span dir="ltr">&lt;<a href="mailto:maxleske@gmail.com" target="_blank">maxleske@gmail.com</a>&gt;</span> wrote:<br>
<div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
There&rsquo;s a problem with the &lsquo;Accept&rsquo; header used by Installer when communicating with Smalltalkhub. Smalltalkhub uses a MIME type of &lsquo;application/x-monticello&rsquo; mor Monticello packages but Installer uses &lsquo;application/octet-stream&rsquo;. This leads to 404 errors. Why not use &lsquo;*/*&rsquo; there?<br>
</blockquote><div><br></div><div>Hmm, sounds like both client and server are doing the wrong thing here.&nbsp;</div><div><br></div><div>Sending &quot;Accept: application/octet-stream&quot; in a request states that the client will accept arbitrary binary data, without attempting to interpret it (i.e., the client will store the data in a file or something). But that&#39;s not true in this case; the client is expecting an MCZ file.&nbsp;</div>
<div><br></div><div>On the other hand, the server should never refuse to send a file to a client that can accept arbitrary data. An MCZ file *is* arbitrary data, after all. Also, it shouldn&#39;t send a 404 response because of an Accept header. A minimum it should send a 406 response, to indicate that it can&#39;t supply an acceptable data-type for that resource. <br>
</div><div><br></div><div>We should fix Installer. The proper header would be &quot;Accept: application/x-monticello,*/*&quot;</div><div><br></div><div>Colin</div></div></div></div>