From f35f46c7bbc3a7f2921583742e7d0bf3b11a09fb Mon Sep 17 00:00:00 2001 From: Fabrizio Furano Date: Thu, 9 Jun 2022 14:01:52 +0200 Subject: [PATCH] Add the server header in HTTP responses (#1706) --- src/XrdHttp/XrdHttpProtocol.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/XrdHttp/XrdHttpProtocol.cc b/src/XrdHttp/XrdHttpProtocol.cc index 17891c0222e..c0b3569f6c6 100644 --- a/src/XrdHttp/XrdHttpProtocol.cc +++ b/src/XrdHttp/XrdHttpProtocol.cc @@ -1521,6 +1521,8 @@ int XrdHttpProtocol::StartSimpleResp(int code, const char *desc, const char *hea else ss << "Connection: Close" << crlf; + ss << "Server: XrootD/" << XrdVSTRING << crlf; + if ((bodylen >= 0) && (code != 100)) ss << "Content-Length: " << bodylen << crlf;