Compare commits

..

No commits in common. "d48707d265e2a5b992ce0fec5c0ac65aacf58255" and "5dfe25ed95718cf9063df7e37f0f3926e0ff80d4" have entirely different histories.

2 changed files with 1 additions and 3 deletions

View File

@ -39,7 +39,7 @@ exports.AGO = function timeago(ms) {
return part + " months ago"; return part + " months ago";
} }
if (ago < 315360000) { // 10 years if (ago < 315360000) {
return "more than year ago"; return "more than year ago";
} }

View File

@ -76,7 +76,6 @@ module.exports.create = function (state) {
return http.createServer(function (req, res) { return http.createServer(function (req, res) {
if (!opts.servername) { if (!opts.servername) {
res.statusCode = 422; res.statusCode = 422;
res.setHeader('Content-Type', 'text/plain; charset=utf-8');
res.end( res.end(
"3. An inexplicable temporal shift of the quantum realm... that makes me feel uncomfortable.\n\n" "3. An inexplicable temporal shift of the quantum realm... that makes me feel uncomfortable.\n\n"
+ "[ERROR] No SNI header was sent. I can only think of two possible explanations for this:\n" + "[ERROR] No SNI header was sent. I can only think of two possible explanations for this:\n"
@ -88,7 +87,6 @@ module.exports.create = function (state) {
// TODO use req.headers.host instead of servername (since domain fronting is disabled anyway) // TODO use req.headers.host instead of servername (since domain fronting is disabled anyway)
res.statusCode = 502; res.statusCode = 502;
res.setHeader('Content-Type', 'text/html; charset=utf-8');
res.end( res.end(
"<h1>Oops!</h1>" "<h1>Oops!</h1>"
+ "<p>It looks like '" + encodeURIComponent(opts.servername) + "' isn't connected right now.</p>" + "<p>It looks like '" + encodeURIComponent(opts.servername) + "' isn't connected right now.</p>"