Commit Diff


commit - 24a2826aba4cf5e99c0e9ce87dccbd23d1b3862e
commit + bc0cdda132594ebe68c239990867d8e9a73af778
blob - 1cef5102d35ecac0af5485462ce1c28a4c66250a
blob + 4f950c38b8d4c9978a1fe92cc44aecade142422c
--- gotd/parse.y
+++ gotd/parse.y
@@ -1744,7 +1744,7 @@ gotd_parse_url(char **proto, char **host, char **port,
 	s = p + 3;
 
 	p = strstr(s, "/");
-	if (p == NULL || strlen(p) == 1) {
+	if (p == NULL) {
 		err = got_error(GOT_ERR_PARSE_URI);
 		goto done;
 	}
@@ -1788,7 +1788,6 @@ gotd_parse_url(char **proto, char **host, char **port,
 		err = got_error_from_errno("strdup");
 		goto done;
 	}
-	got_path_strip_trailing_slashes(*request_path);
 	if ((*request_path)[0] == '\0') {
 		err = got_error(GOT_ERR_PARSE_URI);
 		goto done;