From 283d5f21e0195fa0cb2a37703a0e5a3305052f2c Mon Sep 17 00:00:00 2001 From: dragongoose Date: Fri, 25 Aug 2023 19:42:43 -0400 Subject: [PATCH] Use url encoding --- extractor/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extractor/utils.go b/extractor/utils.go index 0468aac..4459a5d 100644 --- a/extractor/utils.go +++ b/extractor/utils.go @@ -6,14 +6,14 @@ import ( ) func ProxyUrl(url string) string { - encodedUrl := b64.StdEncoding.EncodeToString([]byte(url)) + encodedUrl := b64.URLEncoding.EncodeToString([]byte(url)) backendUrl := os.Getenv("URL") return backendUrl + "/proxy/img/" + encodedUrl } func ProxyClip(url string) string { - encodedUrl := b64.StdEncoding.EncodeToString([]byte(url)) + encodedUrl := b64.URLEncoding.EncodeToString([]byte(url)) backendUrl := os.Getenv("URL") return backendUrl + "/proxy/clip/" + encodedUrl