code style

This commit is contained in:
John
2022-02-12 12:42:35 +01:00
parent 04c6b40704
commit 7ae43351da
16 changed files with 181 additions and 164 deletions
+3 -3
View File
@@ -106,11 +106,11 @@ class SSLSocket {
#define SocketClass SSLSocket
#else // HAVE_SSL
#else // HAVE_SSL
#define SocketClass TCPSocket
#endif // HAVE_SSL
#endif // HAVE_SSL
/**
* Helper class for handling HTTP client requests.
@@ -160,7 +160,7 @@ class HttpClient {
* @param userAgent the optional user agent to send in the request header.
* @return true on success, false on connect failure.
*/
bool connect(const string& host, uint16_t port, const bool https = false, const string& userAgent = "", int timeout = 5);
bool connect(const string& host, uint16_t port, bool https = false, const string& userAgent = "", int timeout = 5);
/**
* Re-connect to the last specified server.