summaryrefslogtreecommitdiff
path: root/http/http_request.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'http/http_request.hpp')
-rw-r--r--http/http_request.hpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/http/http_request.hpp b/http/http_request.hpp
index 5ce434b921..cf0f4171c7 100644
--- a/http/http_request.hpp
+++ b/http/http_request.hpp
@@ -43,13 +43,8 @@ struct Request
}
}
- Request(std::string_view bodyIn, std::error_code& ec) : req({}, bodyIn)
- {
- if (!setUrlInfo())
- {
- ec = std::make_error_code(std::errc::invalid_argument);
- }
- }
+ Request(std::string_view bodyIn, std::error_code& /*ec*/) : req({}, bodyIn)
+ {}
Request() = default;