diff options
Diffstat (limited to 'src/transport.cc')
| -rw-r--r-- | src/transport.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/transport.cc b/src/transport.cc index 8195db7..50f83e4 100644 --- a/src/transport.cc +++ b/src/transport.cc @@ -3,6 +3,7 @@ #include "pathutil.hh" #include "strutil.hh" #include "transport.hh" +#include "urlutil.hh" #include <utility> @@ -87,7 +88,8 @@ public: auto clean_path = path::cleanup(request->path()); if (clean_path != request->path()) { - auto response = transport->create_redirect(clean_path, false); + auto response = transport->create_redirect( + url::escape(clean_path, url::EscapeFlags::KEEP_SLASH), false); return response; } |
