summaryrefslogtreecommitdiff
path: root/src/modules/m_http_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_http_client.cpp')
-rw-r--r--src/modules/m_http_client.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/m_http_client.cpp b/src/modules/m_http_client.cpp
index 4b3edca55..b0fcccd47 100644
--- a/src/modules/m_http_client.cpp
+++ b/src/modules/m_http_client.cpp
@@ -231,7 +231,6 @@ void HTTPSocket::Connect(const string &ip)
if (!this->DoConnect())
{
- Server->Log(DEBUG, "Unable to connect HTTPSocket to %s", this->host);
delete this;
}
}
@@ -311,12 +310,9 @@ bool HTTPSocket::OnDataReady()
void HTTPSocket::OnClose()
{
- if (!data.length())
- {
- Server->Log(DEBUG, "HTTP socket closed unexpectedly (no content recieved)");
+ if (data.empty())
return;
- }
- Server->Log(DEBUG, "Got file from HTTP successfully");
+
response->data = data;
response->Send();
delete response;