mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 06:43:49 +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) {
|
handler: function(args,callback) {
|
||||||
var port = args.length > 0 ? args[0] : 8000;
|
var port = args.length > 0 ? args[0] : 8000;
|
||||||
http.createServer(function (request, response) {
|
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);
|
tiddler = store.getTiddler(title);
|
||||||
if(tiddler) {
|
if(tiddler) {
|
||||||
response.writeHead(200, {"Content-Type": "text/html"});
|
response.writeHead(200, {"Content-Type": "text/html"});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user