Skip to content

Commit

Permalink
Allow empty options string
Browse files Browse the repository at this point in the history
  • Loading branch information
tonistiigi committed Feb 23, 2015
1 parent a254c59 commit 5b92f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function compileHandler(compilers) {
return;
}
var source = req.body.source;
if (!source || !req.body.options) {
if (!source || typeof(req.body.options) !== "string") {
return next(new Error("Bad request"));
}
var options = req.body.options.split(' ').filter(function (x) {
Expand Down

0 comments on commit 5b92f11

Please sign in to comment.