We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d879e3 commit b352aa5Copy full SHA for b352aa5
1 file changed
src/http.cpp
@@ -539,7 +539,7 @@ namespace http
539
540
std::string_view get_mime_type(std::string_view path)
541
{
542
- const std::string ext2 = fs::path(path).extension();
+ const std::string ext2 = fs::path(path).extension().string();
543
for (const auto& [ext1, mime] : MIME_TYPES)
544
if (ext1 == ext2)
545
return mime;
0 commit comments