Package: bozohttpd Version: 20111118-1 Tag: patch Hi,
Out of the box, bozohttpd sents a HTTP header "Content-Type: text/html" when offering .html files. When these files are encoded as utf-8, webbrowsers display these wrongly. The webserver should sent them with a "Content-Type: text/html; charset=utf-8" HTTP header. Attached patch changes bozohttpd's default. A better way to support utf-8 would be to offer a commandline option to override default content types (the -M-flag merely _adds_ to this list). (For anybody reading this bugreport, who is interested in this utf-8 functionality: at http://mdcc.cx/tmp/bozohttpd/ prebuild .deb's are available.) Thanks for maintaining bozohttpd! Bye, Joost -- "This particular group of cats is mostly self-herding." -- Bdale Garbee
--- content-bozo.c.dist 2011-11-18 10:21:15.000000000 +0100 +++ content-bozo.c 2013-04-19 11:28:23.901315639 +0200 @@ -45,16 +45,16 @@ */ static bozo_content_map_t static_content_map[] = { - { ".html", 5, "text/html", "", "", NULL }, - { ".htm", 4, "text/html", "", "", NULL }, + { ".html", 5, "text/html; charset=utf-8", "", "", NULL }, + { ".htm", 4, "text/html; charset=utf-8", "", "", NULL }, { ".gif", 4, "image/gif", "", "", NULL }, { ".jpeg", 5, "image/jpeg", "", "", NULL }, { ".jpg", 4, "image/jpeg", "", "", NULL }, { ".jpe", 4, "image/jpeg", "", "", NULL }, { ".png", 4, "image/png", "", "", NULL }, { ".mp3", 4, "audio/mpeg", "", "", NULL }, - { ".css", 4, "text/css", "", "", NULL }, - { ".txt", 4, "text/plain", "", "", NULL }, + { ".css", 4, "text/css; charset=utf-8", "", "", NULL }, + { ".txt", 4, "text/plain; charset=utf-8", "", "", NULL }, { ".swf", 4, "application/x-shockwave-flash","", "", NULL }, { ".dcr", 4, "application/x-director", "", "", NULL }, { ".pac", 4, "application/x-ns-proxy-autoconfig", "", "", NULL },