On 03/28/2013 09:38 PM, Eduardo Silva wrote:
and... the patch ?
On Thu, Mar 28, 2013 at 12:51 PM, Denis Mone <[email protected]
<mailto:[email protected]>> wrote:
On 03/28/2013 07:52 PM, Eduardo Silva wrote:
+1 for length = 64, please re-submit
On Thu, Mar 28, 2013 at 10:47 AM, Lauri Kasanen <[email protected]
<mailto:[email protected]>> wrote:
On Thu, 28 Mar 2013 18:08:15 +0200
Denis Mone <[email protected] <mailto:[email protected]>>
wrote:
> Hello.
>
> I have written a patch that fixes the bug #172.
>
> Hope it will be of help!
Good find.
Let's raise it to 64 instead though, better cache effects
with a power of two.
- Lauri
_______________________________________________
Monkey mailing list
[email protected]
<mailto:[email protected]>
http://lists.monkey-project.com/listinfo/monkey
--
Eduardo Silva
http://edsiper.linuxchile.cl
http://www.monkey-project.com
Resubmit it the patch!
--
Eduardo Silva
http://edsiper.linuxchile.cl
http://www.monkey-project.com
Sorry my bad forgot to attach it!
>From c2a7217c75f7a93e1492ce6659d817f6c5a5a860 Mon Sep 17 00:00:00 2001
From: Denis Mone <[email protected]>
Date: Thu, 28 Mar 2013 20:34:37 +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..1e41b56 100644
--- a/plugins/cgi/cgi.h
+++ b/plugins/cgi/cgi.h
@@ -35,7 +35,7 @@
enum {
PATHLEN = 1024,
- SHORTLEN = 36
+ SHORTLEN = 64
};
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