diff options
| author | Sebastiano Barezzi <[email protected]> | 2022-07-11 23:47:48 +0200 |
|---|---|---|
| committer | Sebastiano Barezzi <[email protected]> | 2022-07-11 23:47:48 +0200 |
| commit | 6af9c120a2d6c9966705dec20037d85808e44e44 (patch) | |
| tree | 337352cfa3e9d2726732d0c546ea611c0577d9d6 | |
| parent | docs(cargo): bump version 0.2.1 -> 0.2.2 (diff) | |
| download | api-worker-6af9c120a2d6c9966705dec20037d85808e44e44.tar.xz api-worker-6af9c120a2d6c9966705dec20037d85808e44e44.zip | |
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
| -rw-r--r-- | src/utils.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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 )); } } |