Added GET_STREAM to switch in http::request().

This commit is contained in:
tastytea 2019-04-09 21:58:02 +02:00
parent 438a3932e1
commit ccedfba4af
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 15 additions and 16 deletions

View File

@ -107,6 +107,7 @@ return_call API::http::request(const http_method &meth,
switch (meth) switch (meth)
{ {
case http_method::GET: case http_method::GET:
case http_method::GET_STREAM:
break; break;
case http_method::PATCH: case http_method::PATCH:
request.setOpt<curlopts::CustomRequest>("PATCH"); request.setOpt<curlopts::CustomRequest>("PATCH");
@ -120,8 +121,6 @@ return_call API::http::request(const http_method &meth,
case http_method::DELETE: case http_method::DELETE:
request.setOpt<curlopts::CustomRequest>("DELETE"); request.setOpt<curlopts::CustomRequest>("DELETE");
break; break;
default:
break;
} }
//request.setOpt<curlopts::Verbose>(true); //request.setOpt<curlopts::Verbose>(true);