Skip to content

patch ReadableStream #182

@satanTime

Description

@satanTime

fetch can receive Request object as the first parameter.

Its body property can be ReadableStream: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API/Using_readable_streams

patch should detect the ReadableStream and patch it to inject the token response here: https://github.com/help-me-mom/cf-workers-turnstile-injection/blob/main/libs/%40cf-workers/turnstile-injection/src/frontend/index.ts#L107

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions