title: Ajax GET request not working with Flask
body: <p>I am taking in bunch of inputs from the user in html which I am then passing on to ajax query to get the response. </p>
  
  <pre><code>$.ajax({
    url:"http://0.0.0.0:8080/getReport",
    type:"GET",
    data:JSON.stringify(out),
    dataType:"json",
    contentType:"application/json"
  })
  </code></pre>
  
  <p>Here is the Flask code that serves the above request. </p>
  
  <pre><code>@app.route('/getReport', methods=['GET'])
  def report():
      return Response('this is a sample response')
  </code></pre>
  
  <p>The above method is not able to find the route to the 'report' with get. However, it is able to find it in POST request. </p>
  
  <p>This is the log that I am getting</p>
  
  <pre><code>  127.0.0.1 - - [25/Apr/2016 13:00:03] "GET /getReport?{%22insertion_id%22:%22%22,%22start%22:%22%22,%22end%22:%22%22} HTTP/1.1" 400 -
  </code></pre>
  
  <p>Bad Request.. What am I doing wrong here?</p>