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
637637 {
638638 m_request.set_request_uri (utility::conversions::to_string_t (http_path_and_version.substr (1 , http_path_and_version.size () - VersionPortionSize - 1 )));
639639 }
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
641641 {
642642 m_request.reply (status_codes::BadRequest, e.what ());
643643 m_close = true ;
@@ -913,7 +913,7 @@ will_deref_and_erase_t asio_server_connection::dispatch_request_to_listener()
913913 {
914914 pListener = m_p_parent->find_listener (m_request.relative_uri ());
915915 }
916- catch (const web::uri_exception&)
916+ catch (const std::exception&) // may be web::uri_exception, or std::range_error indicating invalid Unicode
917917 {
918918 m_request.reply (status_codes::BadRequest);
919919 (will_erase_from_parent_t )do_response ();
You can’t perform that action at this time.
0 commit comments