diff options
author | 2018-04-28 10:51:07 -0700 | |
---|---|---|
committer | 2018-04-28 10:51:07 -0700 | |
commit | 1eba1730d1af50ed545f4fde78b22d6fb62ca11e (patch) | |
tree | 61f99282f66529b42625a8f335593bdcb461459c /ui/proxy.go | |
parent | 04adf5fdf53951f270923c41171a52575db53e46 (diff) | |
download | v2-1eba1730d1af50ed545f4fde78b22d6fb62ca11e.tar.gz v2-1eba1730d1af50ed545f4fde78b22d6fb62ca11e.tar.zst v2-1eba1730d1af50ed545f4fde78b22d6fb62ca11e.zip |
Move HTTP client to its own package
Diffstat (limited to 'ui/proxy.go')
-rw-r--r-- | ui/proxy.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/proxy.go b/ui/proxy.go index 5237d006..78ab67de 100644 --- a/ui/proxy.go +++ b/ui/proxy.go @@ -11,7 +11,7 @@ import ( "time" "github.com/miniflux/miniflux/crypto" - "github.com/miniflux/miniflux/http" + "github.com/miniflux/miniflux/http/client" "github.com/miniflux/miniflux/http/handler" "github.com/miniflux/miniflux/logger" ) @@ -36,8 +36,8 @@ func (c *Controller) ImageProxy(ctx *handler.Context, request *handler.Request, return } - client := http.NewClient(string(decodedURL)) - resp, err := client.Get() + clt := client.New(string(decodedURL)) + resp, err := clt.Get() if err != nil { logger.Error("[Controller:ImageProxy] %v", err) response.HTML().NotFound() |