Commit 6b2f67a6 authored by nanahira's avatar nanahira

cases when decode needed

parent a38547d2
Pipeline #17474 passed with stages
in 2 minutes and 41 seconds
......@@ -239,6 +239,11 @@ export class OneTwoThreeService extends MiddlewareService {
}
async parse302(url: string) {
if (url.includes('?params=')) {
const params = url.split('?params=')[1];
const decoded = Buffer.from(params, 'base64').toString('utf-8');
return this.parse302(decoded);
}
const tmpLinkReq = await lastValueFrom(
this.http.head(url, {
maxRedirects: 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment