浏览代码

Fix client - Support multiple domains (Step 4/?)

bel2125 7 年之前
父节点
当前提交
5eac946852
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/civetweb.c

+ 1 - 0
src/civetweb.c

@@ -15185,6 +15185,7 @@ mg_connect_client_impl(const struct mg_client_options *client_options,
 	conn->buf = (((char *)conn) + conn_size + ctx_size);
 	conn->buf_size = (int)max_req_size;
 	conn->phys_ctx->context_type = CONTEXT_HTTP_CLIENT;
+	conn->dom_ctx = &(conn->phys_ctx->dd);
 
 	if (!connect_socket(&common_client_context,
 	                    client_options->host,