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
1 changed files with 1 additions and 1 deletions

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"});