Skip to content

Commit

Permalink
Merge pull request #84 from bausshf/master
Browse files Browse the repository at this point in the history
Fixing major bug
  • Loading branch information
bausshf authored Apr 15, 2018
2 parents 4a1fd48 + fceb4f5 commit 839b056
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http/routing.d
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,9 @@ static if (isWeb)

auto routeData = url.split("/");

enforce(!routeData[$-1].canFind("?"), "Found query string in the routing url.");
enforce(!routeData.length || !routeData[$-1].canFind("?"), "Found query string in the routing url.");

_name = routeData[0].strip().firstToLower();
_name = routeData.length ? routeData[0].strip().firstToLower() : "";

if (routeData.length > 1)
{
Expand Down

0 comments on commit 839b056

Please sign in to comment.