hns - 日記自動生成システム - Version 2.19.9

先月 2004年10月 来月
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2004年10月10日() 旧暦 [n年日記]

更新: "2004/10/10 08:08:17"

#1 [Web] Content-Encoding: (with

Apache is sending strange header, 'Content-Encoding: (with' if the data being sent has escape characters.
HTTP/1.1 200 OK
Date: Sat, 09 Oct 2004 22:07:01 GMT
Server: Apache/2.0.52 (Unix) mod_ssl/2.0.52 OpenSSL/0.9.7d DAV/2 PHP/4.3.9
Content-Encoding: (with 
Content-Language: ja
Last-Modified: Sat, 09 Oct 2004 21:22:26 GMT
Content-Length: 11027
Content-Type: text/html; charset=ISO-2022-JP
The source code on this particular line is of httpd-2.0.52/modules/metadata/mod_mime_magic.c:
2013         for (p = names; p < names + NNAMES; p++) {
2014             if (STREQ(p->name, token)) { 
2015                 magic_rsl_puts(r, types[p->type]);
2016                 if (has_escapes)
2017                     magic_rsl_puts(r, " (with escape sequences)");
2018                 return 1; 
2019             }
2020         }
I have changed the word 'with' to another one, and httpd outputs the changed word. So definitely the location is correct. Interim fix not to send unbalanced parenthesis:
ttyp0:makoto@st4200  7:47:46/041010(...work/httpd-2.0.52)> 
diff -u  ./modules/metadata/mod_mime_magic.c{~,}
--- ./modules/metadata/mod_mime_magic.c~        2004-02-10 05:53:19.000000000 +0900
+++ ./modules/metadata/mod_mime_magic.c 2004-10-10 07:41:20.000000000 +0900
@@ -2014,7 +2014,7 @@
            if (STREQ(p->name, token)) {
                magic_rsl_puts(r, types[p->type]);
                if (has_escapes)
-                   magic_rsl_puts(r, " (with escape sequences)");
+                 {} /* magic_rsl_puts(r, " (with escape sequences)"); */
                return 1;
            }
        }
The same thing is done 5 years ago ? Page in Japanese The other guy read that page...



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)