Skip to content
Snippets Groups Projects
Commit 0f681ce9 authored by vaartis's avatar vaartis
Browse files

Fix emoji having double http(s) in their addresses

parent 632af4f9
No related branches found
No related tags found
No related merge requests found
...@@ -140,8 +140,7 @@ export async function updatePackFile(host, token, args) { ...@@ -140,8 +140,7 @@ export async function updatePackFile(host, token, args) {
} }
export function addressOfEmojiInPack(host, packName, name) { export function addressOfEmojiInPack(host, packName, name) {
// This needs http because hackney on the BE does not understand URLs with just "//" return `${baseName(host)}/emoji/${packName}/${name}`
return `http://${baseName(host)}/emoji/${packName}/${name}`
} }
const authHeaders = (token) => token ? { 'Authorization': `Bearer ${getToken()}` } : {} const authHeaders = (token) => token ? { 'Authorization': `Bearer ${getToken()}` } : {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment