Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'release'

  • Loading branch information...
commit cfd01e6a5f583b23934017340cca9269b2d20a65 2 parents dbe8a57 + 36c56c1
@mbostock mbostock authored
View
2  lib/cube/index.js
@@ -1,4 +1,4 @@
-exports.version = "0.0.7";
+exports.version = "0.0.8";
exports.emitter = require("./server/emitter");
exports.server = require("./server/server");
exports.collector = require("./server/collector");
View
12 lib/cube/server/endpoint.js
@@ -8,9 +8,11 @@ exports.exact = exact;
exports.file = file;
var types = {
- html: "text/html",
- css: "text/css",
- js: "text/javascript"
+ html: "text/html;charset=utf-8",
+ css: "text/css;charset=utf-8",
+ js: "text/javascript;charset=utf-8",
+ json: "application/json;charset=utf-8",
+ png: "image/png"
};
function exact(method, path, dispatch) {
@@ -52,7 +54,7 @@ function file() {
hasBody = status === 200 && request.method !== "HEAD";
var headers = {
- "Content-Type": type + ";charset=utf-8",
+ "Content-Type": type,
"Date": new Date().toUTCString(),
"Last-Modified": modified.toUTCString()
};
@@ -68,7 +70,7 @@ function file() {
}
function read(i) {
- fs.readFile(files[i], "UTF-8", function(error, data) {
+ fs.readFile(files[i], function(error, data) {
if (error) throw fiveohoh(request, response), error;
response.write(data);
if (i < files.length - 1) read(i + 1);
View
2  package.json
@@ -1,6 +1,6 @@
{
"name": "cube",
- "version": "0.0.7",
+ "version": "0.0.8",
"description": "A system for time series visualization using MongoDB, Node and D3.",
"keywords": ["time series", "visualization"],
"homepage": "http://square.github.com/cube/",
Please sign in to comment.
Something went wrong with that request. Please try again.