diff options
Diffstat (limited to 'src/helsinki.at/rhimport')
-rw-r--r-- | src/helsinki.at/rhimport/core.go (renamed from src/helsinki.at/rhimport/log.go) | 6 | ||||
-rw-r--r-- | src/helsinki.at/rhimport/fetcher.go | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/helsinki.at/rhimport/log.go b/src/helsinki.at/rhimport/core.go index b192c30..5498499 100644 --- a/src/helsinki.at/rhimport/log.go +++ b/src/helsinki.at/rhimport/core.go @@ -26,6 +26,7 @@ package rhimport import ( // "io/ioutil" + "github.com/golang-basic/go-curl" "log" "os" ) @@ -35,3 +36,8 @@ var ( rhdl = log.New(os.Stderr, "[rhimport-dbg]\t", log.LstdFlags) //rhdl = log.New(ioutil.Discard, "[rhimport-dbg]\t", log.LstdFlags) ) + +func init() { + curl.GlobalInit(curl.GLOBAL_ALL) + fetcher_init() +} diff --git a/src/helsinki.at/rhimport/fetcher.go b/src/helsinki.at/rhimport/fetcher.go index 03cf3da..ccbca43 100644 --- a/src/helsinki.at/rhimport/fetcher.go +++ b/src/helsinki.at/rhimport/fetcher.go @@ -150,9 +150,7 @@ var ( } ) -func init() { - curl.GlobalInit(curl.GLOBAL_ALL) - +func fetcher_init() { info := curl.VersionInfo(curl.VERSION_FIRST) protos := info.Protocols for _, proto := range protos { |