From 6af9c120a2d6c9966705dec20037d85808e44e44 Mon Sep 17 00:00:00 2001 From: Sebastiano Barezzi Date: Mon, 11 Jul 2022 23:47:48 +0200 Subject: fix(utils): Don't encode response links * We return application/json content, which shouldn't need decoding from the client side, unlike application/x-www-form-urlencoded * Stop encoding the URL inside the responses Change-Id: I7023f4b811ab7c2e9b7f8987ea0991cfc725a374 --- src/utils.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/utils.rs b/src/utils.rs index 242cd77..ff272c0 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -147,8 +147,7 @@ pub async fn filter_images_by_language( } else { &*boys::GITHUB_USER_CONTENT }, - // URL (percent) encoding because we are pushing a URL, not a string - quote(item.path, b"").ok().unwrap() + item.path )); } } -- cgit v1.2.3