I&#39;m trying to setup a Merb cluster + attachment_fu to handle uploads for a client&#39;s Rails app.<br><br>I&#39;m using Flash to upload the files and I realized that Merb was giving me an error for each upload. It turns out that Flash doesn&#39;t seem to send an Accept header and Merb&#39;s responder crashes because it&#39;s trying to split the missing Accept header.
<br><br>responder.rb line 37<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; def initialize(accept_header, params={})<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MERB_LOGGER.info accept_header<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @accepts = Responder.parse(accept_header)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @params = params<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @stack&nbsp; = {}
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end<br><br clear="all">@accepts seems to be later on used in negotiate_content() l84, negotiate_by_format() l92, negotiate_by_accept_header l103<br><br>What&#39;s the proper way of dealing with this problem?<br>
<br>Thanks,<br><br>-Matt<br><br>