summaryrefslogtreecommitdiff
path: root/src/shared/web-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-08-19 18:15:37 +0200
committerLennart Poettering <lennart@poettering.net>2021-08-20 21:56:39 +0200
commitc456862f87237831ce2bbaeb53a37d1b3d669285 (patch)
tree763c4d08764dae35c15b6c8f27b89cd1ff63efd4 /src/shared/web-util.h
parent55b90ee00b78a449c8f187a5e8141f8ccb100bf4 (diff)
downloadsystemd-c456862f87237831ce2bbaeb53a37d1b3d669285.tar.gz
import: allow file:// in addition to HTTP(S)
Previously we only allows http/https urls, let's open this up a bit. Why? Because it makes testing *so* *much* *easier* as we don't need to run a HTTP server all the time. CURL mostly abstracts the differences of http/https away from us, hence we can get away with very little extra work.
Diffstat (limited to 'src/shared/web-util.h')
-rw-r--r--src/shared/web-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/web-util.h b/src/shared/web-util.h
index ec54669f50..88b4897be0 100644
--- a/src/shared/web-util.h
+++ b/src/shared/web-util.h
@@ -6,6 +6,7 @@
#include "macro.h"
bool http_url_is_valid(const char *url) _pure_;
+bool file_url_is_valid(const char *url) _pure_;
bool documentation_url_is_valid(const char *url) _pure_;