Comparing version 0.1.32 to 0.1.33
{ | ||
"name":"jest", | ||
"description":"JavaScriptational State Transfer. JS restful API layer with Mongoose based resources. Inspired by python Tastypie", | ||
"version":"0.1.32", | ||
"version":"0.1.33", | ||
"author":"Ishai Jaffe <ishai@empeeric.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -509,3 +509,3 @@ var _ = require('underscore'), | ||
var self = this; | ||
var format = req.query.format || req.body.format; | ||
var format = (req.query && req.query.format) || (req.body && req.body.format); | ||
// check if method is allowed | ||
@@ -512,0 +512,0 @@ var method = req.method.toLowerCase(); |
66441