http: Fix paths with spaces in them.

Should ideally escape other characters, but only space is necessary for
our server to parse.
This commit is contained in:
Unknown W. Brackets committed 2016-07-03 22:13:53 -07:00
1 parent 41e167f384
commit 2b613443cd
1 file changed
+1 -1
+1 -1
View File
@@ -95,7 +95,7 @@ static void ExecuteServer() {
// Let's not serve directories, since they won't work. Only single files.
// Maybe can do PBPs and other files later. Would be neat to stream virtual disc filesystems.
if (endsWithNoCase(basename, ".cso") || endsWithNoCase(basename, ".iso")) {
paths[basename] = filename;
paths[ReplaceAll(basename, " ", "%20")] = filename;
}
}