Skip to content

Commit

Permalink
server - remove search params for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Antriel committed May 16, 2022
1 parent 3a1619f commit 1448689
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/whet/stones/Server.hx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ class Server extends Stone<ServerConfig> {
res.end();
}
// TODO gzip support.
var id:SourceId = req.url;
// Remove search params for now.
final searchIndex = req.url.indexOf('?');
var id:SourceId = searchIndex > 0 ? req.url.substring(0, searchIndex) : req.url;
switch req.method {
case "GET":
if (id.isDir()) id.withExt = "index.html";
Expand Down

0 comments on commit 1448689

Please sign in to comment.