title: getting errors as like on my localhost elasticsearch::Transport::Transport::Errors::NotAcceptable
body: <blockquote>
    <p>elasticsearch::Transport::Transport::Errors::NotAcceptable: [406] {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406} </p>
  </blockquote>
  
  <p>am getting this errs on my localhost so when i run it on live its work  fine but on my localhost it's rising me as like errors so</p>
  
  <p>Sample of code:</p>
  
  <pre><code>def council_with_name(name) begin query_hash = {
    : query =&gt; {
      : match =&gt; {
        : name =&gt; name
      }
    },
    : size =&gt; 1
  }
  response = self.__elasticsearch__.search query_hash result = response.records.to_a.first
  return result rescue
  return nil end
  </code></pre>