mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-22 20:11:46 +00:00
Fixed Unit test failures on Windows
This commit is contained in:
1 parent
315c11d6e2
commit
6a608b3ed4
2 files changed
+5
-2
No files matched your search
@@ -1383,6 +1383,10 @@ inline bool Client::read_response_line(Stream& strm, Response& res)
|
||||
|
||||
inline bool Client::send(const Request& req, Response& res)
|
||||
{
|
||||
if (req.path.empty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
auto sock = detail::create_client_socket(host_.c_str(), port_);
|
||||
if (sock == -1) {
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user