From 6d3d3322e5c676e63d1f64dce89ce86e58dcd715 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Wed, 5 Feb 2014 19:39:29 +0000 Subject: [PATCH] Fix problem in server with URI encoding of titles in etags Fixes #398 --- core/modules/commands/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/commands/server.js b/core/modules/commands/server.js index 11c622a04..e5468e7c7 100644 --- a/core/modules/commands/server.js +++ b/core/modules/commands/server.js @@ -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(); }