File 0003-fix-expect-100-continue-identificat.patch of Package apache2-mod_fastcgi

From: Yehuda Sadeh <yehuda@hq.newdream.net>
Date: Tue, 26 Jul 2011 16:13:02 -0700
Subject: [PATCH] fix expect-100-continue identification

---
 fcgi_protocol.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/fcgi_protocol.c b/fcgi_protocol.c
index f80c5a5..bc9f487 100644
--- a/fcgi_protocol.c
+++ b/fcgi_protocol.c
@@ -243,7 +243,7 @@ int fcgi_protocol_queue_env(request_rec *r, fcgi_request *fr, env_status *env,
 
     while (*env->envp) {
 	ap_log_error(FCGI_LOG_WARN_NOERRNO, fcgi_apache_main_server,
-			"FastCGI: JJJ envp=%s", *env->envp);
+			"FastCGI: envp=%s", *env->envp);
         switch (env->pass) 
         {
         case PREP:
@@ -254,10 +254,10 @@ int fcgi_protocol_queue_env(request_rec *r, fcgi_request *fr, env_status *env,
             env->nameLen = env->equalPtr - *env->envp;
             env->valueLen = strlen(++env->equalPtr);
 	    ap_log_error(FCGI_LOG_WARN_NOERRNO, fcgi_apache_main_server,
-			"FastCGI: JJJ name='%.*s' val='%.*s'", env->nameLen, *env->envp, env->valueLen, val);
+			"FastCGI: name='%.*s' val='%.*s'", env->nameLen, *env->envp, env->valueLen, val);
 	    if (val && env->nameLen == sizeof("HTTP_EXPECT") - 1 &&
-                strncasecmp(name, "HTTP_EXPECT", env->nameLen) == 0 &&
-		strncasecmp(val, "100-continue", env->valueLen) == 0)
+                strcasecmp(name, "HTTP_EXPECT") == 0 &&
+                strcasecmp(val, "100-continue") == 0)
 		*expect_cont = 1;
             build_env_header(env->nameLen, env->valueLen, env->headerBuff, &env->headerLen);
             env->totalLen = env->headerLen + env->nameLen + env->valueLen;