Skip to content
Snippets Groups Projects
Commit 7cb8ce10 authored by parazyd's avatar parazyd Committed by derf
Browse files

Add support for gopher and gophers in utils/path_is_url.


Both of these protocols are supported in latest curl.

Signed-off-by: default avatarparazyd <parazyd@dyne.org>
parent 0784921a
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment