File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Release/src/http/listener Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -637,7 +637,7 @@ will_deref_and_erase_t asio_server_connection::handle_http_line(const boost::sys
637
637
{
638
638
m_request.set_request_uri (utility::conversions::to_string_t (http_path_and_version.substr (1 , http_path_and_version.size () - VersionPortionSize - 1 )));
639
639
}
640
- catch (const web::uri_exception &e)
640
+ catch (const std::exception& e) // may be std::range_error indicating invalid Unicode, or web::uri_exception
641
641
{
642
642
m_request.reply (status_codes::BadRequest, e.what ());
643
643
m_close = true ;
@@ -913,7 +913,7 @@ will_deref_and_erase_t asio_server_connection::dispatch_request_to_listener()
913
913
{
914
914
pListener = m_p_parent->find_listener (m_request.relative_uri ());
915
915
}
916
- catch (const web::uri_exception&)
916
+ catch (const std::exception&) // may be web::uri_exception, or std::range_error indicating invalid Unicode
917
917
{
918
918
m_request.reply (status_codes::BadRequest);
919
919
(will_erase_from_parent_t )do_response ();
You can’t perform that action at this time.
0 commit comments