diff --git a/httpd/fx/app/controllers/fx_controller.kc3 b/httpd/fx/app/controllers/fx_controller.kc3
index 844414b..29edace 100644
--- a/httpd/fx/app/controllers/fx_controller.kc3
+++ b/httpd/fx/app/controllers/fx_controller.kc3
@@ -86,10 +86,7 @@ defmodule FXController do
(request.url == "/fx" ||
Str.starts_with?(request.url, "/fx/")) do
path = "." + request.url
- response = show_file(path, request.url)
- if (response) do
- response
- end
+ show_file(path, request.url)
end
}
diff --git a/lib/kc3/0.1/httpd.kc3 b/lib/kc3/0.1/httpd.kc3
index 14d62fb..6a610b0 100644
--- a/lib/kc3/0.1/httpd.kc3
+++ b/lib/kc3/0.1/httpd.kc3
@@ -139,7 +139,7 @@ defmodule HTTPd do
def redirect_to = fn (url) {
%HTTP.Response{code: 303,
message: "See other",
- headers: [{"Location", url}],
+ headers: [{"Location", URL.escape(url)}],
body: ""}
}