vinipsmaker / tufao

An asynchronous web framework for C++ built on top of Qt
http://vinipsmaker.github.io/tufao/
GNU Lesser General Public License v2.1
589 stars 179 forks source link

Remove trailing path separator from rootDir in HttpFileServer::handler in the same way it is done in the constructor. #61

Closed saemy closed 9 years ago

saemy commented 9 years ago

When creating an instance of HttpFileServer a trailing path seperator is removed from the rootDir. However, this is not done if the static HttpFileServer::handler is used (e.g. when attaching it to a HttpServerRequestRouter).

Not doing so results in no service from the HttpFileServer.

vinipsmaker commented 9 years ago

Thank you for the patch.