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:
parent
118e86cbfe
commit
25bf2fc330
@ -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"});
|
||||
|
Loading…
Reference in New Issue
Block a user