From: Jeremy Tan Date: Wed, 21 Aug 2013 14:10:40 +0000 (+0800) Subject: Fix params field for reject message X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=a795e93e7dd1f695380a61dc3b5bea0cafbbdc42;p=matches%2FMCTX3420.git Fix params field for reject message --- diff --git a/server/fastcgi.c b/server/fastcgi.c index 4fc3742..c662db9 100644 --- a/server/fastcgi.c +++ b/server/fastcgi.c @@ -248,7 +248,7 @@ void FCGI_RejectJSON(FCGIContext *context) FCGI_BeginJSON(context, STATUS_ERROR); FCGI_JSONPair("description", "Invalid request"); FCGI_JSONLong("responsenumber", context->response_number); - FCGI_JSONPair("params", getenv("DOCUMENT_URI_LOCAL")); + FCGI_JSONPair("params", getenv("QUERY_STRING")); FCGI_JSONPair("host", getenv("SERVER_HOSTNAME")); FCGI_JSONPair("user", getenv("REMOTE_USER")); FCGI_JSONPair("ip", getenv("REMOTE_ADDR"));