Mercurial > hg > orthanc
diff OrthancServer/OrthancHttpHandler.cpp @ 1446:8dc80ba768aa
refactoring: IHttpHandler does not use std::string to hold the request body
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 01 Jul 2015 13:16:12 +0200 |
parents | d26c8a93d05a |
children | 3232f1c995a5 |
line wrap: on
line diff
--- a/OrthancServer/OrthancHttpHandler.cpp Wed Jul 01 12:30:19 2015 +0200 +++ b/OrthancServer/OrthancHttpHandler.cpp Wed Jul 01 13:16:12 2015 +0200 @@ -43,14 +43,15 @@ const UriComponents& uri, const Arguments& headers, const GetArguments& getArguments, - const std::string& body) + const char* bodyData, + size_t bodySize) { bool found = false; for (Handlers::const_iterator it = handlers_.begin(); it != handlers_.end() && !found; ++it) { - found = (*it)->Handle(output, method, uri, headers, getArguments, body); + found = (*it)->Handle(output, method, uri, headers, getArguments, bodyData, bodySize); } return found;