فهرست منبع

Support multiple domains (Step 9/?)

bel2125 7 سال پیش
والد
کامیت
79b58dca72
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -15783,7 +15783,7 @@ get_request(struct mg_connection *conn, char *ebuf, size_t ebuf_len, int *err)
 
 	/* Is there a "host" ? */
 	conn->host = alloc_get_host(conn);
-	if (!host) {
+	if (!conn->host) {
 		mg_snprintf(conn,
 		            NULL, /* No truncation check for ebuf */
 		            ebuf,