Browse Source

Support multiple domains (Step 9/?)

bel2125 7 years ago
parent
commit
79b58dca72
1 changed files with 1 additions and 1 deletions
  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" ? */
 	/* Is there a "host" ? */
 	conn->host = alloc_get_host(conn);
 	conn->host = alloc_get_host(conn);
-	if (!host) {
+	if (!conn->host) {
 		mg_snprintf(conn,
 		mg_snprintf(conn,
 		            NULL, /* No truncation check for ebuf */
 		            NULL, /* No truncation check for ebuf */
 		            ebuf,
 		            ebuf,