ITADN

`@arcjet/bun`: silently does not read body when already read

#5515Closedwooorm-arcjet 创建于 2025-12-10
W
wooorm-arcjetcommented
When a user reads the body before passing `request` into `@arcjet/bun`, the SDK will receive a `""` body back. In Deno (and probably others), reading a used stream again will throw, which will cause SDKs to log an error and return an error decision. There is a `request.bodyUsed: boolean` field which could be used to tell users that `@arcjet/bun` cannot do work.
关闭于 2026-01-07 0 条评论