๐Ÿ A very simple static Gemini server, now with Titan support!
cpp gemini titan gemini-protocol titan-protocol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: assume index.gmi of path if trailing slash

Fuwn 0cb2fad5 424cf673

+2 -2
+2 -2
maple/maple.cc
··· 208 208 209 209 response << "20 text/gemini\r\n" << buffer.str(); 210 210 } else { 211 - if (path.empty() || path == "/") { 212 - std::ifstream file(".maple/gmi/index.gmi"); 211 + if (path.empty() || path.at(path.length() - 1) == '/') { 212 + std::ifstream file(".maple/gmi" + path + "index.gmi"); 213 213 std::stringstream buffer; 214 214 215 215 buffer << file.rdbuf();