title: 406 Not Acceptable error when using Jquery $.post in Firefox but not in Safari or Chrome
body: <p>I'm using Jquery (1.3.2)  $.post command to trigger an ajax call to a rails server.</p>
  
  <p>The code works great on Safari and on Google Chrome (mac), but when I tried it on Firefox (3.5.7), I got a weird '406 Not Acceptable' error.</p>
  
  <p>When I look at the headers, it Firefox indicated that it accepted only '    text/javascript' responses. And the response Content-Type    was 'text/html; charset=utf-8'.</p>
  
  <p>In Chrome the accepted types were 'application/json, text/javascript, <em>/</em>, text/javascript' and the response Content-Type was 'application/json; charset=utf-8'.</p>
  
  <p>I tried to force the content type in rails to 'text/javascript' </p>
  
  <pre><code>format.json do
     render :json =&gt; @races.to_json, :content_type =&gt; 'text/javascript'
  end
  </code></pre>
  
  <p>The content type is indeed changed in Chrome, but not in Firefox where it remains 'text/html'.</p>
  
  <p>Here is the code I used to trigger the ajax call.</p>
  
  <pre><code>$.post(
      "/locator",
      params, 
      function(data){...},
      "json"
  );
  </code></pre>
  
  <p>Is there something I can do to make this work in Firefox?
  Thanks</p>