From 4186bcf1b22fb111fb27c877df60bae72d0d404c Mon Sep 17 00:00:00 2001 From: Kr328 Date: Mon, 19 Apr 2021 17:40:38 +0800 Subject: [PATCH] Fix: should write file if provider initialize from HTTP (#1365) --- adapters/provider/fetcher.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adapters/provider/fetcher.go b/adapters/provider/fetcher.go index 3a351e9a6..5ef3f25ca 100644 --- a/adapters/provider/fetcher.go +++ b/adapters/provider/fetcher.go @@ -72,6 +72,8 @@ func (f *fetcher) Initial() (interface{}, error) { if err != nil { return nil, err } + + isLocal = false } if f.vehicle.Type() != File && !isLocal {