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 46844f559..70f8e712d 100644 --- a/lib/compile-handler.js +++ b/lib/compile-handler.js @@ -85,6 +85,7 @@ function CompileHandler(gccProps, compilerProps) { }); }; var proxy = httpProxy.createProxyServer({}); + var textBanner = compilerProps('textBanner'); this.handler = _.bind(function compile(req, res, next) { var source, options, filters, compiler; @@ -149,7 +150,7 @@ function CompileHandler(gccProps, compilerProps) { } else { res.set('Content-Type', 'text/plain'); try { - res.write("# Compilation provided by Compiler Explorer at " + req.get('Host') + "\n"); + if (!_.isEmpty(textBanner)) res.write('# ' + textBanner + "\n"); res.write(textify(result.asm)); if (result.code !== 0) res.write("\n# Compiler exited with result code " + result.code); if (!_.isEmpty(result.stdout)) res.write("\nStandard out:\n" + textify(result.stdout)); |