From a17f6d06fde31084b5f0e1ffd3fc3b752853cb49 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 1 Oct 2014 11:32:05 +0200 Subject: [PATCH] Fixed embed code when running on port 80. --- src/connectors/conn_http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connectors/conn_http.cpp b/src/connectors/conn_http.cpp index 156f7fb8..4c050398 100644 --- a/src/connectors/conn_http.cpp +++ b/src/connectors/conn_http.cpp @@ -384,7 +384,7 @@ namespace Connector_HTTP { std::string response; std::string host = H.GetHeader("Host"); - if (host.find(':')){ + if (host.find(':') != std::string::npos){ host.resize(host.find(':')); } H.Clean();