Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Some cleanup

  • Loading branch information...
commit c4bc0fb357234bf535b5a403cb30d1e9cb2af209 1 parent f151ad7
@kriszyp kriszyp authored
Showing with 1 addition and 6 deletions.
  1. +1 −6 jsgi/media.js
View
7 jsgi/media.js
@@ -81,14 +81,12 @@ function Deserialize(mediaSelector, nextApp){
var unsupportedError = new Error("Unsupported Media Type");
unsupportedError.status = 415;
throw unsupportedError;
-// return {status: 415, headers:{}, body: ["Unsupported Media Type"]};
}
try{
body = requestMedia.media.deserialize(body, requestMedia.parameters, request);
}catch(e){
e.status = 400;
throw e;
-// return {status: 400, headers: {}, body: [e.message]};
}
if(typeof body.callNextApp === "function"){
return body.callNextApp(nextApp);
@@ -96,11 +94,8 @@ function Deserialize(mediaSelector, nextApp){
}
}
-//function dir(){var sys=require('sys');for(var i=0,l=arguments.length;i<l;i++)sys.debug(sys.inspect(arguments[i]));}
-//dir('DES?:', body);
return when(body, function(body){
-//dir('DES!:', body);
- request.body = body
+ request.body = body;
return nextApp(request);
});
};
Please sign in to comment.
Something went wrong with that request. Please try again.