Skip to content

Commit

Permalink
Merge pull request #896 from apeters1971/wip-http-protocol-header
Browse files Browse the repository at this point in the history
XrdHttp: add the used protocol (https/http) as a special header i
  • Loading branch information
simonmichal committed Jan 29, 2019
2 parents acda120 + 6682090 commit d1fc1a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/XrdHttp/XrdHttpExtHandler.cc
Expand Up @@ -84,6 +84,7 @@ verb(req->requestverb), headers(req->allheaders) {
int envlen = 0;

headers["xrd-http-query"] = req->opaque?req->opaque->Env(envlen):"";
headers["xrd-http-prot"] = prot->isHTTPS()?"https":"http";

// These fields usually identify the client that connected

Expand Down
3 changes: 3 additions & 0 deletions src/XrdHttp/XrdHttpProtocol.hh
Expand Up @@ -124,6 +124,9 @@ public:
/// Authentication area
XrdSecEntity SecEntity;

/// called via https
bool isHTTPS() { return ishttps; }

private:


Expand Down

0 comments on commit d1fc1a9

Please sign in to comment.