Send MIME type along with HTML; Remove xml namespace declaration from HTML (not valid...
authorJack Allnutt <m2ys4u@Gmail.com>
Thu, 22 Sep 2011 18:54:46 +0000 (19:54 +0100)
committerJack Allnutt <m2ys4u@Gmail.com>
Thu, 22 Sep 2011 18:54:46 +0000 (19:54 +0100)
js/front.js
node/app.js
node/client/index.html.jade

index 0dae4a5ead1d2d95e3201518481fac9cb72109f6..93d296c6415589e57cf8d704ec8278b596384f17 100644 (file)
@@ -274,8 +274,9 @@ kiwi.front = {
         // Update msg if it's been changed by any plugins
         msg = plugin_event.command.toString();
 
-        console.log("running " + msg);
+        
         if (msg.substring(0, 1) === '/') {
+            console.log("running " + msg);
             parts = msg.split(' ');
             switch (parts[0].toLowerCase()) {
             case '/j':
index ed1b70d7b3448b946cbc29269aad34a261fb2cb6..458c2df01c442a434a8daecbfdfad850c729f752 100644 (file)
@@ -600,6 +600,7 @@ this.httpHandler = function (request, response) {
                     response.statusCode = 304;
                 } else {
                     response.setHeader('Etag', kiwi.cache.html[hash].hash);
+                    response.setHeader('Content-type', 'text/html');
                     response.write(kiwi.cache.html[hash].html);
                 }
                 response.end();
@@ -614,6 +615,7 @@ this.httpHandler = function (request, response) {
                             response.statusCode = 304;
                         } else {
                             response.setHeader('Etag', hash2);
+                            response.setHeader('Content-type', 'text/html');
                             response.write(html);
                         }
                     } else {
index 38ccf15e52147b6e356f59cf2cd21ee9c99ee0bc..28283683ce1a817df42e2e403addcc524cb7124a 100644 (file)
@@ -1,5 +1,5 @@
 !!! 5
-html(xmlns="http://www.w3.org/1999/xhtml", lang="en-gb")
+html(lang="en-gb")
     head
 
         meta(http-equiv="Content-Type", content="text/html; charset=utf-8")