Fixed problem with serving tiddlers with space in the title

print-window-tiddler
Jeremy Ruston 2011-12-07 18:06:25 +00:00
rodzic 118e86cbfe
commit 25bf2fc330
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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