File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,6 +128,8 @@ media_type get_media(const rpc::request_t& model) NOEXCEPT
128128 case media_type::application_json:
129129 case media_type::application_octet_stream:
130130 return value;
131+ default :
132+ return media_type::unknown;
131133 }
132134 }
133135 }
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ bool protocol_native::try_dispatch_object(const http::request& request) NOEXCEPT
139139// Serialization.
140140// ----------------------------------------------------------------------------
141141
142- constexpr auto html = to_value(http::media_type::text_html);
142+ // // constexpr auto html = to_value(http::media_type::text_html);
143143constexpr auto text = to_value(http::media_type::text_plain);
144144constexpr auto json = to_value(http::media_type::application_json);
145145constexpr auto data = to_value(http::media_type::application_octet_stream);
You can’t perform that action at this time.
0 commit comments