1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Fixed problem with serving tiddlers with space in the title

This commit is contained in:
Jeremy Ruston 2011-12-07 18:06:25 +00:00
parent 118e86cbfe
commit 25bf2fc330

View File

@ -159,7 +159,7 @@ var commandLineSwitches = {
handler: function(args,callback) {
var port = args.length > 0 ? args[0] : 8000;
http.createServer(function (request, response) {
var title = url.parse(request.url).pathname.substr(1),
var title = decodeURIComponent(url.parse(request.url).pathname.substr(1)),
tiddler = store.getTiddler(title);
if(tiddler) {
response.writeHead(200, {"Content-Type": "text/html"});