From ccedfba4af83deb7158a05fb8c523ebe4bd303d2 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 9 Apr 2019 21:58:02 +0200 Subject: [PATCH] Added GET_STREAM to switch in http::request(). --- src/http.cpp | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/http.cpp b/src/http.cpp index c207943..33c2236 100644 --- a/src/http.cpp +++ b/src/http.cpp @@ -106,22 +106,21 @@ return_call API::http::request(const http_method &meth, switch (meth) { - case http_method::GET: - break; - case http_method::PATCH: - request.setOpt("PATCH"); - break; - case http_method::POST: - request.setOpt("POST"); - break; - case http_method::PUT: - request.setOpt("PUT"); - break; - case http_method::DELETE: - request.setOpt("DELETE"); - break; - default: - break; + case http_method::GET: + case http_method::GET_STREAM: + break; + case http_method::PATCH: + request.setOpt("PATCH"); + break; + case http_method::POST: + request.setOpt("POST"); + break; + case http_method::PUT: + request.setOpt("PUT"); + break; + case http_method::DELETE: + request.setOpt("DELETE"); + break; } //request.setOpt(true);