From 0529ac97653bc535c5c1db832d258f661d69309c Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 16 May 2022 13:49:54 +0200 Subject: refactor(minion): improve network code readability --- minion/src/http/request.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'minion/src/http/request.cpp') diff --git a/minion/src/http/request.cpp b/minion/src/http/request.cpp index 650f57f..6a3f722 100644 --- a/minion/src/http/request.cpp +++ b/minion/src/http/request.cpp @@ -129,14 +129,14 @@ auto HTTPRequest::operator=(HTTPRequest &&other) noexcept -> HTTPRequest & return *this; } -HTTPRequest HTTPRequest::create_invalid() noexcept +auto HTTPRequest::create_invalid() noexcept -> HTTPRequest { - return HTTPRequest(); + return {}; } HTTPRequest::HTTPRequest() noexcept : _connection(-1), - _method(HTTPRequestMethod(-1)), + _method(HTTPRequestMethod::GET), _http_version(""), _path(""), _data_length(0), -- cgit v1.2.3-18-g5258