|
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-JPThe 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年07月03日 ・kicad oddity 2024年05月08日 ・comparison on ./buildsh tools 2024年05月06日 ・py-setuptools (python 3.11.9) ・make release took 1 hours and 10 min ・qemu invocation for 10.99.10 2024年05月05日 ・Windows 10 version ・serial connection ・bc bench 2024年05月04日 ・Trial on 10.99.10 ・another version (later trial) to succeed | ||