Commit Diff


commit - fb5636bebb6e4d59f4bbc0fd78650714474ac681
commit + f9e6537008c7344a6107b88bc19c5f293cacd793
blob - b8cb49b93ee649511f7600e9a0f0644e63abffa9
blob + ad685fad9127a30b70881cfc8f2b608b5da20495
--- 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;