Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/kriszyp/pintura
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlandolt committed Sep 3, 2010
2 parents ab3386d + 6388276 commit fe7e2e4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/jsgi/media.js
Expand Up @@ -97,7 +97,7 @@ function Serialize(mediaSelector, nextApp){
if(body === undefined){
if(request.method === "GET"){
response.status = 404;
response.body = request.pathInfo + " not found";
body = request.pathInfo + " not found";
}
else{
// undefined indicates no body with non-GETs
Expand Down
1 change: 0 additions & 1 deletion lib/media/html.js
Expand Up @@ -53,7 +53,6 @@ Media({
}else{
template = templateEngine.compile(templateId, (mediaParams && mediaParams.template));
rendered = template(object);
print("Rendered: " + rendered);
}

//delete any existing content-length headers as the size has changed post conversion/templating
Expand Down
5 changes: 3 additions & 2 deletions lib/media/json.js
Expand Up @@ -47,8 +47,9 @@ function StreamingSerializer(stringify){
}), function(){
write("]");
});
}
else {
}else if(object == undefined){
write("null");
}else{
write(stringify(object));
}
}
Expand Down
1 change: 1 addition & 0 deletions lib/pintura.js
Expand Up @@ -83,6 +83,7 @@ var Connector = require("tunguska/connector").Connector;
exports.addConnection = exports.app.addConnection = function(connection){
Connector("local-workers", connection);
connection[connection.on ? "on" : "observe"]("message", function(message){
message.pathInfo = message.channel || message.to;
if(message.method && message.method !== "subscribe"){
exports.directApp(message);
}
Expand Down

0 comments on commit fe7e2e4

Please sign in to comment.