Commit Diff


commit - 1bce54cf7c1889402aca9736b413efdb45ed1b71
commit + c7d1a4d98cf513b3015d80f6948b25aad5929a17
blob - 1d2b80dcbade71b2486c8d78498c7c5eb877e037
blob + 43858a3fc70b77963b5985f1bf6470bb24429296
--- libexec/got-fetch-http/got-fetch-http.c
+++ libexec/got-fetch-http/got-fetch-http.c
@@ -170,7 +170,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");