Mercurial > hg > orthanc
diff Core/HttpServer/HttpToolbox.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 | b2b09a3dbd8e |
children | 5ba7471780ae |
line wrap: on
line diff
--- a/Core/HttpServer/HttpToolbox.cpp Wed Jul 01 12:30:19 2015 +0200 +++ b/Core/HttpServer/HttpToolbox.cpp Wed Jul 01 13:16:12 2015 +0200 @@ -199,7 +199,6 @@ const std::string& uri) { IHttpHandler::Arguments headers; // No HTTP header - std::string body; // No body for a GET request UriComponents curi; IHttpHandler::GetArguments getArguments; @@ -208,7 +207,8 @@ StringHttpOutput stream; HttpOutput http(stream, false /* no keep alive */); - if (handler.Handle(http, HttpMethod_Get, curi, headers, getArguments, body)) + if (handler.Handle(http, HttpMethod_Get, curi, headers, getArguments, + NULL /* no body for GET */, 0)) { stream.GetOutput(output); return true;