<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"><<a href="mailto:maxleske@gmail.com" target="_blank">maxleske@gmail.com</a>></span> wrote:<br>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
There’s a problem with the ‘Accept’ header used by Installer when communicating with Smalltalkhub. Smalltalkhub uses a MIME type of ‘application/x-monticello’ mor Monticello packages but Installer uses ‘application/octet-stream’. This leads to 404 errors. Why not use ‘*/*’ there?<br>
</blockquote><div><br></div><div>Hmm, sounds like both client and server are doing the wrong thing here. </div><div><br></div><div>Sending "Accept: application/octet-stream" 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's not true in this case; the client is expecting an MCZ file. </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't send a 404 response because of an Accept header. A minimum it should send a 406 response, to indicate that it can't supply an acceptable data-type for that resource. <br>
</div><div><br></div><div>We should fix Installer. The proper header would be "Accept: application/x-monticello,*/*"</div><div><br></div><div>Colin</div></div></div></div>