diff options
author | Matt Godbolt <matt@godbolt.org> | 2017-01-15 16:29:01 -0600 |
---|---|---|
committer | Matt Godbolt <matt@godbolt.org> | 2017-01-15 16:29:05 -0600 |
commit | 6ecd63bef0285144ff2c887397ad62046a38b3ad (patch) | |
tree | 979b10bac24fe809fff4de9f03695deee0156776 /lib/compile-handler.js | |
parent | 801c58604a227b70e9c715c22c33c6218321a3b4 (diff) | |
download | compiler-explorer-6ecd63bef0285144ff2c887397ad62046a38b3ad.tar.gz compiler-explorer-6ecd63bef0285144ff2c887397ad62046a38b3ad.zip |
Banner fixes
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)); |