]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/import/pull-job.c
import: allow file:// in addition to HTTP(S)
authorLennart Poettering <lennart@poettering.net>
Thu, 19 Aug 2021 16:15:37 +0000 (18:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Aug 2021 19:56:39 +0000 (21:56 +0200)
commitc456862f87237831ce2bbaeb53a37d1b3d669285
tree763c4d08764dae35c15b6c8f27b89cd1ff63efd4
parent55b90ee00b78a449c8f187a5e8141f8ccb100bf4
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.
src/import/importd.c
src/import/pull-job.c
src/import/pull-raw.c
src/import/pull-tar.c
src/import/pull.c
src/machine/machinectl.c
src/shared/web-util.c
src/shared/web-util.h