yohgaki         Sun Sep  8 20:32:40 2002 EDT

  Modified files:              (Branch: PHP_4_2_0)
    /php4/main  SAPI.c 
  Log:
  Fixed typo.
  
  
Index: php4/main/SAPI.c
diff -u php4/main/SAPI.c:1.129.2.3 php4/main/SAPI.c:1.129.2.4
--- php4/main/SAPI.c:1.129.2.3  Sat Jul 27 09:15:42 2002
+++ php4/main/SAPI.c    Sun Sep  8 20:32:40 2002
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: SAPI.c,v 1.129.2.3 2002/07/27 13:15:42 hirokawa Exp $ */
+/* $Id: SAPI.c,v 1.129.2.4 2002/09/09 00:32:40 yohgaki Exp $ */
 
 #include <ctype.h>
 #include <sys/stat.h>
@@ -261,6 +261,7 @@
                newtype = emalloc(newlen + 1);
                PHP_STRLCPY(newtype, *mimetype, newlen + 1, len);
                strlcat(newtype, ";charset=", newlen + 1);
+               strlcat(newtype, charset, newlen + 1);
                if (*mimetype != NULL) {
                        efree(*mimetype);
                }
@@ -460,8 +461,6 @@
                                        strlcat(newheader, mimetype, newlen);
                                        sapi_header.header = newheader;
                                        sapi_header.header_len = newlen - 1;
-                                       colon_offset = strchr(newheader, ':');
-                                       *colon_offset = '\0';
                                        efree(header_line);
                                }
                                



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to