1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 00:50:28 +00:00

Fix problem in server with URI encoding of titles in etags

Fixes #398
This commit is contained in:
Jermolene 2014-02-05 19:39:29 +00:00
parent 1d685df928
commit 6d3d3322e5

View File

@ -157,7 +157,7 @@ var Command = function(params,commander,callback) {
state.wiki.addTiddler(new $tw.Tiddler(state.wiki.getCreationFields(),fields,{title: title}));
var changeCount = state.wiki.getChangeCount(title).toString();
response.writeHead(204, "OK",{
Etag: "\"default/" + title + "/" + changeCount + ":\""
Etag: "\"default/" + encodeURIComponent(title) + "/" + changeCount + ":\""
});
response.end();
}