Skip to content

Modify served content #2

@istvanmate

Description

@istvanmate

Seeking help once again.

When proxying .m3u8 files, there are sometimes embedded URL-s that would have the client contact the server directly via the embedded URL. I would like to change that URL and serve the modified content. What I managed to do, is to check if the URL points to an .m3u8 file

ctx.body = req
if (dest.endsWith(".m3u8")) {
    ctx.body = req // here I would need to modify the content, but .replace() does not work
}

Could anyone point me to the right direction?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions