Nenhuma resposta com solicitação POST e Content-Type “application / json” no frasco

Estou tendo problemas com uma visualização de Flask que deve retornar uma resposta com o tipo de conteúdo "application / json" em resposta a uma solicitação POST. Especificamente, se eu fizer:

curl -v -d 'foo=bar' http://example.org/jsonpost

para esta visão:

@app.route('/jsonpost', methods=['GET', 'POST'])
def json_post():
    resp = make_response('{"test": "ok"}')
    resp.headers['Content-Type'] = "application/json"
    return resp

Eu recebo algum tipo de redefinição de conexão:

* About to connect() to example.org port 80 (#0)
*   Trying xxx.xxx.xxx.xxx... connected
* Connected to example.org (xxx.xxx.xxx.xxx) port 80 (#0)
> POST /routing/jsonpost HTTP/1.1
> User-Agent: curl/7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15
> Host: example.org
> Accept: */*
> Content-Length: 7
> Content-Type: application/x-www-form-urlencoded
>
< HTTP/1.1 200 OK
< Server: nginx/1.2.4
< Date: Thu, 27 Dec 2012 14:07:59 GMT
< Content-Type: application/json
< Content-Length: 14
< Connection: keep-alive
< Set-Cookie: session="..."; Path=/; HttpOnly
< Cache-Control: public
<
* transfer closed with 14 bytes remaining to read
* Closing connection #0
curl: (18) transfer closed with 14 bytes remaining to read

Se ao invés disso eu fizer:

curl -d 'foo=bar' http://example.org/htmlpost

para:

@app.route('/htmlpost', methods=['GET', 'POST'])
def html_post():
    resp = make_response('{"test": "ok"}')
    resp.headers['Content-Type'] = "text/html"
    return resp

Eu recebo o esperado a resposta completa (200-ok)

{"test": "ok"}

A propósito, se eu enviar uma solicitação GET para a mesma rota JSON:

curl http://example.org/jsonpost

Eu também recebo a resposta esperada .. Alguma idéia?

questionAnswers(1)

yourAnswerToTheQuestion