Skip to content

Commit b352aa5

Browse files
Update http.cpp
1 parent 2d879e3 commit b352aa5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/http.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ namespace http
539539

540540
std::string_view get_mime_type(std::string_view path)
541541
{
542-
const std::string ext2 = fs::path(path).extension();
542+
const std::string ext2 = fs::path(path).extension().string();
543543
for (const auto& [ext1, mime] : MIME_TYPES)
544544
if (ext1 == ext2)
545545
return mime;

0 commit comments

Comments
 (0)