title: jQuery get request against Sinatra does not get text
body: <p>I have a very simple sinatra site that I'm trying to access via ajax through jQuery.</p>
  
  <p>To keep things incredibly simple, this code snippet:</p>
  
  <pre><code>get '/behavior_count' do
    "60"
  end
  </code></pre>
  
  <p>which returns "60" in the browser, shows up as an empty string when attempting to access the site via <code>$.get</code> in jQuery.  The strange part is in Firebug, while the Response is empty, the HTTP header correctly describes Content-Length as 2, and I can see the request show up on the server.</p>
  
  <p>Is there something specific to Sinatra that isn't returning my data, or am I not using jQuery correctly?</p>
  
  <p>If it helps, I also tried this code:</p>
  
  <pre><code>get '/behavior_count' do
    content_type 'text/plain', :charset =&gt; 'utf-8'
    "60"
  end
  </code></pre>
  
  <p>and my jQuery looks like</p>
  
  <pre><code>$.get('http://mysite:4567/behavior_count'); // Ignore the response, but
                                              // watch the request in firebug
  </code></pre>
  
  <p>Any ideas?</p>