Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createCall's incoming request is not a readable stream #332

Open
Tofandel opened this issue Oct 13, 2024 · 0 comments
Open

createCall's incoming request is not a readable stream #332

Tofandel opened this issue Oct 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Tofandel
Copy link

Tofandel commented Oct 13, 2024

Environment

NA

Reproduction

import { createCall } from "unenv/runtime/fetch/index";

createCall(async (req, res) => {
  console.log(req.readable); // false
  console.log(req.readableLength); // 0
  console.log(req.header["content-length"]); //undefined
})({url: '/', body: 'test'})

Describe the bug

While the real node implementation of a server would have req.readable = true and readableLength = 4 as well as a content-length = 4 header

Additional context

No response

Logs

No response

@Tofandel Tofandel added the bug Something isn't working label Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant