Index: gwlib/http.c
===================================================================
RCS file: /home/cvs/gateway/gwlib/http.c,v
retrieving revision 1.255
diff -a -u -r1.255 http.c
--- gwlib/http.c	26 Jan 2009 15:20:17 -0000	1.255
+++ gwlib/http.c	27 Mar 2009 17:24:09 -0000
@@ -2816,7 +2816,7 @@
         *value = octstr_duplicate(os);
     } else {
         *name = octstr_copy(os, 0, colon);
-        *value = octstr_copy(os, colon + 1, octstr_len(os));
+        *value = octstr_copy(os, colon + 1, octstr_len(os) - colon - 1);
         octstr_strip_blanks(*value);
     }
 }
