Commit Diff


commit - 24a5a6ec4dc24f78834a3e638a297cb9024f008d
commit + ddda3dca68828e68eece9b72e7f46a21e7ac5238
blob - 1359056f3684043421faf449d2d868ff02af7caa
blob + ea11756a2bd8b873f48ca71082d2ced3fc260963
--- vostok/request.h
+++ vostok/request.h
@@ -28,7 +28,7 @@ class Request (public)
     };
     ParseResult parse(/* out */ std::string &path);
 
-private:
+// private:
     std::string m_buffer;
 };
 
blob - 5bf0f7168ca12925f06e65023d88a6a3ab3193ab
blob + ab64a0d3c3bcfff3e9c9208ee76857f354f27d78
--- vostok/vostok.cc
+++ vostok/vostok.cc
@@ -71,6 +71,10 @@ void client_thread(const transport::AcceptedClient *ac
     {
     case Request::BAD_REQUEST:
         error::occurred("Parse request", []{error::g_log << meta::BAD_REQUEST;});
+        error::g_log << std::dec << request.m_buffer.size();
+        for (const auto byte : request.m_buffer)
+            error::g_log << " 0x" << std::hex << static_cast<int>(byte);
+        error::g_log << std::endl;
         send_response(accepted_client->get_ctx(), gemini::STATUS_59_BAD_REQUEST, meta::BAD_REQUEST);
         return;
     case Request::URL_TOO_SHORT: