You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Asking crow to respond to a static file request using crow::response::set_static_file_info causes an uncaught std::out_of_range exception if the file's extension is not one crow knows about (i.e. not in crow::mime_types).
The text was updated successfully, but these errors were encountered:
I'm guessing this is for files without a . in their names (since that's how Crow determines the extension). The best fix would be to add an extension / mime-type argument to the method, while also adding an if statement before here.
Asking crow to respond to a static file request using
crow::response::set_static_file_info
causes an uncaughtstd::out_of_range
exception if the file's extension is not one crow knows about (i.e. not incrow::mime_types
).The text was updated successfully, but these errors were encountered: