@@ -58,7 +58,6 @@ constexpr std::string_view CONNECTION_CLOSE = "close";
5858constexpr std::string_view CONNECTION_KEEP_ALIVE = " keep-alive" ;
5959constexpr std::string_view ENCODING_GZIP = " gzip" ;
6060constexpr std::string_view ENCODING_DEFLATE = " deflate" ;
61- constexpr std::string_view CONTENT_TYPE_TEXT_WIN1251 = " text/html; charset=windows-1251" ;
6261constexpr std::string_view CONTENT_TYPE_APP_FORM_URLENCODED = " application/x-www-form-urlencoded" ;
6362constexpr std::string_view CONTENT_TYPE_MULTIPART_FORM_DATA = " multipart/form-data" ;
6463
@@ -350,15 +349,12 @@ void init_server(kphp::component::stream&& request_stream, kphp::stl::vector<std
350349
351350 // ==================================
352351 // prepare some response headers
353-
354- // add content-type header
355352 auto & static_SB{RuntimeContext::get ().static_SB };
356- static_SB.clean () << headers::CONTENT_TYPE.data () << " : " << CONTENT_TYPE_TEXT_WIN1251.data ();
357- kphp::http::header ({static_SB.c_str (), static_SB.size ()}, true , status::NO_STATUS);
358353 // add connection kind header
359354 const auto connection_kind{http_server_instance_st.connection_kind == connection_kind::keep_alive ? CONNECTION_KEEP_ALIVE : CONNECTION_CLOSE};
360355 static_SB.clean () << headers::CONNECTION.data () << " : " << connection_kind.data ();
361356 kphp::http::header ({static_SB.c_str (), static_SB.size ()}, true , status::NO_STATUS);
357+
362358 kphp::log::info (" http server initialized with: "
363359 " server addr -> {}, "
364360 " server port -> {}, "
0 commit comments