Mercurial > hg > orthanc
diff OrthancServer/OrthancHttpHandler.cpp @ 1571:3232f1c995a5
provide the origin of the requests to HTTP handlers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Aug 2015 11:04:19 +0200 |
parents | 8dc80ba768aa |
children | b1291df2f780 |
line wrap: on
line diff
--- a/OrthancServer/OrthancHttpHandler.cpp Sun Aug 23 11:13:03 2015 +0200 +++ b/OrthancServer/OrthancHttpHandler.cpp Tue Aug 25 11:04:19 2015 +0200 @@ -39,6 +39,9 @@ namespace Orthanc { bool OrthancHttpHandler::Handle(HttpOutput& output, + RequestOrigin origin, + const char* remoteIp, + const char* username, HttpMethod method, const UriComponents& uri, const Arguments& headers, @@ -51,7 +54,8 @@ for (Handlers::const_iterator it = handlers_.begin(); it != handlers_.end() && !found; ++it) { - found = (*it)->Handle(output, method, uri, headers, getArguments, bodyData, bodySize); + found = (*it)->Handle(output, origin, remoteIp, username, method, uri, + headers, getArguments, bodyData, bodySize); } return found;