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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;