Move shadow to event API

PUBLISHED_FROM=cd059adee921dd10fd89100b0e2500ff8d7743eb
This commit is contained in:
Бобби 2017-12-14 04:58:45 +00:00 committed by Cesanta Bot
parent be63c0dc89
commit 4e11d5cdbf

View File

@ -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",