actually fixed filename preview on telegram properly
This commit is contained in:
parent
2c0ce0f720
commit
daa8aa5da6
|
@ -262,7 +262,7 @@ async function track(env, id, format, tagging, range_header, user_agent) {
|
|||
if (user_agent === null || !user_agent.startsWith('TelegramBot')) {
|
||||
content_disposition = `inline; filename*=UTF-8''${encodeRFC5987ValueChars(filename)}`
|
||||
} else {
|
||||
content_disposition = `inline; filename="${filename.replaceAll('"', (c) => `\\${c}`)}"`
|
||||
content_disposition = `inline; filename="${filename.replaceAll('"', '%22')}"`
|
||||
}
|
||||
|
||||
let init = { method: 'GET', headers: {} }
|
||||
|
|
Loading…
Reference in New Issue