dotnet / WatsonWebserver

Watson is the fastest, easiest way to build scalable RESTful web servers and services in C#.
MIT License
403 stars 83 forks source link

Add URL encoding support and index.html automatic mapping support in ContentRouteHandler #127

Closed ChZhongPengCheng33 closed 9 months ago

ChZhongPengCheng33 commented 9 months ago

Add the following code after here:

if (filePath.EndsWith("/"))
{
    filePath += "index.html";
}
filePath = WebUtility.UrlDecode(filePath);

After adding the above code, my Vitespress documentation website can now function properly.

jchristn commented 9 months ago

Resolved in v6.1.5, thanks @ChZhongPengCheng33