Группа :: Система/Серверы
Пакет: cherokee
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: cherokee-0.5.0-alt-nocontent.patch
--- cherokee/handler_error.c.orig 2006-03-20 18:05:57 +0300
+++ cherokee/handler_error.c 2006-03-31 22:57:17 +0400
@@ -194,8 +194,11 @@
/* Usual headers
*/
+ if (conn->error_code != http_moved_temporarily &&
+ conn->error_code != http_moved_permanently) {
cherokee_buffer_add_str (buffer, "Content-Type: text/html"CRLF);
cherokee_buffer_add_va (buffer, "Content-length: %d"CRLF, hdl->content->len);
+ }
cherokee_buffer_add_str (buffer, "Cache-Control: no-cache"CRLF);
cherokee_buffer_add_str (buffer, "Pragma: no-cache"CRLF);
cherokee_buffer_add_str (buffer, "P3P: CP=3DNOI NID CURa OUR NOR UNI"CRLF);