commit fe55fe41ebae13ff135eb0041f19a224015cbf29 from: Christian Weisgerber date: Sun Apr 28 20:13:30 2024 UTC got-fetch-http: backout GET request URL fix It broke the clone regression test. commit - 1db91dc77e5551d8955120674296a29d7820a483 commit + fe55fe41ebae13ff135eb0041f19a224015cbf29 blob - 81dcd137f8c0c0a0d15ad94c033346ea201d8b95 blob + a62f4f48f936f8cb6c39475cec6af2804c62e233 --- libexec/got-fetch-http/got-fetch-http.c +++ libexec/got-fetch-http/got-fetch-http.c @@ -168,7 +168,7 @@ http_open(struct bufio *bio, int https, const char *me if (ctype) chdr = "Content-Type: "; - r = asprintf(&p, "/%s%s%s%s", path, path_sufx, + r = asprintf(&p, "%s/%s%s%s", path, path_sufx, query ? "?" : "", query ? query : ""); if (r == -1) err(1, "asprintf");