summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Omegle/src/communication.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Omegle/src/communication.cpp b/protocols/Omegle/src/communication.cpp
index efcc37271a..5eaadc8ef5 100644
--- a/protocols/Omegle/src/communication.cpp
+++ b/protocols/Omegle/src/communication.cpp
@@ -107,6 +107,11 @@ http::response Omegle_client::flap(const int request_type, std::string *post_dat
resp.code = pnlhr->resultCode;
resp.data = pnlhr->pData ? pnlhr->pData : "";
+ // This error code gives us some error page, but we don't need that, so clear the response
+ if (pnlhr->resultCode == HTTP_CODE_WEB_SERVER_IS_DOWN) {
+ resp.data = "";
+ }
+
parent->debugLogA("&&&&& Got response: %s", resp.data.c_str());
Netlib_FreeHttpRequest(pnlhr);