Skip to content

Commit

Permalink
Add support for gopher and gophers in utils/path_is_url.
Browse files Browse the repository at this point in the history
Both of these protocols are supported in latest curl.

Signed-off-by: parazyd <parazyd@dyne.org>
  • Loading branch information
parazyd authored and derf committed Mar 10, 2021
1 parent 0784921 commit 7cb8ce1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils.c
Expand Up @@ -146,6 +146,8 @@ char *estrjoin(const char *separator, ...)
char path_is_url(char *path) {
if ((!strncmp(path, "http://", 7))
|| (!strncmp(path, "https://", 8))
|| (!strncmp(path, "gopher://", 9))
|| (!strncmp(path, "gophers://", 10))
|| (!strncmp(path, "ftp://", 6))
|| (!strncmp(path, "file://", 7)))
return 1;
Expand Down

0 comments on commit 7cb8ce1

Please sign in to comment.