Merge branch 'nd/split-index-null-base-fix'
[gitweb.git] / remote-curl.c
index c78ba83744451f50ee1a7db65a38d3cc0e984b2a..bb7421023ba584d59592124aa6f3ff2028bc5356 100644 (file)
@@ -374,7 +374,7 @@ static void check_smart_http(struct discovery *d, const char *service,
                d->len = reader.src_len;
                d->proto_git = 1;
 
-       } else if (starts_with(reader.line, "version 2")) {
+       } else if (!strcmp(reader.line, "version 2")) {
                /*
                 * v2 smart http; do not consume version packet, which will
                 * be handled elsewhere.