Skip to content

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

Description

@Tofandel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions