diff options
author | Jelmer Snoeck <jelmer.snoeck@gmail.com> | 2015-08-24 22:42:03 +0100 |
---|---|---|
committer | Jelmer Snoeck <jelmer.snoeck@gmail.com> | 2015-08-24 22:42:03 +0100 |
commit | 66de656c58127811f119b9b8d34022438906d5de (patch) | |
tree | 1e1505a6dcf4ea74bb14a1fa15d0a61ac26fccfc /contrib/fhttp/fhttp.go | |
parent | 4258c2e0e7b3f57a5913e2983e316ad2b3e079a5 (diff) |
Use RegisterHttpImage instead of RegisterRemoteImage.
Remote can mean several things, HTTP is more specific and matches the
actual implementation.
Diffstat (limited to 'contrib/fhttp/fhttp.go')
-rw-r--r-- | contrib/fhttp/fhttp.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/fhttp/fhttp.go b/contrib/fhttp/fhttp.go index cf13b25..8887fbc 100644 --- a/contrib/fhttp/fhttp.go +++ b/contrib/fhttp/fhttp.go @@ -5,10 +5,10 @@ import ( "net/http" ) -// RegisterRemoteImage registers a remote image. Downloading the image from the +// RegisterHttpImage registers a HTTP image. Downloading the image from the // provided URL and adding it to the PDF but not adding it to the page. Use // Image() with the same URL to add the image to the page. -func RegisterRemoteImage(f *gofpdf.Fpdf, urlStr, tp string) (info *gofpdf.ImageInfoType) { +func RegisterHttpImage(f *gofpdf.Fpdf, urlStr, tp string) (info *gofpdf.ImageInfoType) { info = f.GetImageInfo(urlStr) if info != nil { |