Hello. I have written a patch that fixes the bug #172.
Hope it will be of help! Thank you.
>From b0d77d8d24a0bd4ad9f028e16b08bd93a1f91d24 Mon Sep 17 00:00:00 2001 From: Denis Mone <[email protected]> Date: Thu, 28 Mar 2013 16:17:01 +0200 Subject: [PATCH] Fixed bug #172. The problem was that the CONTENT_TYPE enviromental variable had to be set to application/x-www-form-urlencoded for the POST array to be accesed.Because the SHORTLEN value was not big enough the value copied on CONTENT_TYPE was application/x-www-form. --- plugins/cgi/cgi.h | 2 +- src/include/mk_request.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/cgi/cgi.h b/plugins/cgi/cgi.h index d649fe5..247e0d8 100644 --- a/plugins/cgi/cgi.h +++ b/plugins/cgi/cgi.h @@ -35,7 +35,7 @@ enum { PATHLEN = 1024, - SHORTLEN = 36 + SHORTLEN = 47 }; struct cgi_request { diff --git a/src/include/mk_request.h b/src/include/mk_request.h index d6f8c71..3a920fb 100644 --- a/src/include/mk_request.h +++ b/src/include/mk_request.h @@ -48,7 +48,7 @@ extern const mk_pointer mk_endblock; #define RH_COOKIE "Cookie:" #define RH_CONTENT_LENGTH "Content-Length:" #define RH_CONTENT_RANGE "Content-Range:" -#define RH_CONTENT_TYPE "Content-type:" +#define RH_CONTENT_TYPE "Content-Type:" #define RH_IF_MODIFIED_SINCE "If-Modified-Since:" #define RH_HOST "Host:" #define RH_LAST_MODIFIED "Last-Modified:" -- 1.7.10.4
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
