Message ID | dc995b3d17cd62dfc19964dd8a95811fe928aa57.1544572142.git.steadmon@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Unify pkt-line error handling and refactor smart-http | expand |
diff --git a/remote-curl.c b/remote-curl.c index 38f51dffb8..b77b173f33 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -375,7 +375,7 @@ static void check_smart_http(struct discovery *d, const char *service, d->len = src_len; d->proto_git = 1; - } else if (starts_with(line, "version 2")) { + } else if (!strcmp(line, "version 2")) { /* * v2 smart http; do not consume version packet, which will * be handled elsewhere.