Commit Diff


commit - 6016a593a32c4f3f27ed3e7892a1595d631fcbef
commit + b59f3cdd27555984293c9f917eaec49aa2beb5f4
blob - 2be6e68ac5cefd775d0459d0993162fda6981f50
blob + 0df7e6d9cea0654f45129eeaa0b53c00b790c401
--- server.c
+++ server.c
@@ -84,8 +84,8 @@ vhost_index(struct vhost *v, const char *path)
 		}
 	}
 
-	if (v->locations[0].default_mime != NULL)
-		return v->locations[0].default_mime;
+	if (v->locations[0].index != NULL)
+		return v->locations[0].index;
 	return index;
 }