From dbdf4537248bb366a3a31da8a2a00f8f2045e119 Mon Sep 17 00:00:00 2001 From: "roberto@quantal64" Date: Mon, 25 Jun 2012 13:41:33 +0200 Subject: [PATCH] fixed mongrel2 tnetstring JSON method --- proto/zeromq.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proto/zeromq.c b/proto/zeromq.c index 9ce338fd..1c159e75 100644 --- a/proto/zeromq.c +++ b/proto/zeromq.c @@ -170,6 +170,9 @@ static int uwsgi_mongrel2_tnetstring_parse(struct wsgi_request *wsgi_req, char * if (key[0] < 97) { if (!uwsgi_strncmp("METHOD", 6, key, keylen)) { + if (!uwsgi_strncmp("JSON", 4, val, vallen)) { + return -1; + } wsgi_req->uh.pktsize += proto_base_add_uwsgi_var(wsgi_req, "REQUEST_METHOD", 14, val, vallen); } else if (!uwsgi_strncmp("VERSION", 7, key, keylen)) {