From 4e11d5cdbfc2c47593b71084d25c3fdaf091fc6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D0=B1=D0=B1=D0=B8?= Date: Thu, 14 Dec 2017 04:58:45 +0000 Subject: [PATCH] Move shadow to event API PUBLISHED_FROM=cd059adee921dd10fd89100b0e2500ff8d7743eb --- mongoose.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mongoose.c b/mongoose.c index f1187ca4..0f291723 100644 --- a/mongoose.c +++ b/mongoose.c @@ -8365,6 +8365,7 @@ struct mg_connection *mg_connect_http_opt( if (post_data == NULL) post_data = ""; if (extra_headers == NULL) extra_headers = ""; if (path.len == 0) path = mg_mk_str("/"); + if (host.len == 0) host = mg_mk_str(""); mg_printf(nc, "%s %.*s HTTP/1.1\r\nHost: %.*s\r\nContent-Length: %" SIZE_T_FMT "\r\n%.*s%s\r\n%s",