From 14a220706474f8b8f60b884934adfede25fa54a4 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 22 Oct 2023 12:44:12 +0000 Subject: [PATCH] Add a Server: header. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4568 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- core/httpd.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/httpd.js b/core/httpd.js index 8e1e42cc..49339deb 100644 --- a/core/httpd.js +++ b/core/httpd.js @@ -120,6 +120,7 @@ function Response(request, client) { let requestVersion = request.version.split("/")[1].split("."); let responseVersion = (requestVersion[0] >= 1 && requestVersion[0] >= 1) ? "1.1" : "1.0"; let headerString = "HTTP/" + responseVersion + " " + status + " " + reason + "\r\n"; + headers['Server'] = `Tilde Friends/${version().number}`; for (let i in headers) { headerString += i + ": " + headers[i] + "\r\n"; lowerHeaders[i.toLowerCase()] = headers[i];