Skip to content

Commit

Permalink
Merge pull request #1719 from ffurano/master
Browse files Browse the repository at this point in the history
Add the server header in HTTP responses (#1706)
  • Loading branch information
ffurano committed Jun 10, 2022
2 parents 3cc82d5 + f35f46c commit b56b969
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/XrdHttp/XrdHttpProtocol.cc
Expand Up @@ -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;

Expand Down

0 comments on commit b56b969

Please sign in to comment.