diff options
Diffstat (limited to 'lib/compile-handler.js')
-rw-r--r-- | lib/compile-handler.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compile-handler.js b/lib/compile-handler.js index a9679c556..f36ce0a07 100644 --- a/lib/compile-handler.js +++ b/lib/compile-handler.js @@ -96,6 +96,7 @@ function CompileHandler(gccProps, compilerProps) { if (!compiler) return next(); source = req.body.source; options = req.body.options; + backendOptions = req.body.backendOptions; filters = req.body.filters || compiler.getDefaultFilters(); } else { // API-style @@ -144,7 +145,7 @@ function CompileHandler(gccProps, compilerProps) { return _.pluck(array || [], 'text').join("\n"); } - compiler.compile(source, options, filters).then( + compiler.compile(source, options, backendOptions, filters).then( function (result) { if (req.accepts(['text', 'json']) === 'json') { res.set('Content-Type', 'application/json'); |