Skip to content

[Bug?]: new Response() returns text/html #1907

@huseeiin

Description

@huseeiin

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

it convets the content-type to text/html

Expected behavior 🤔

it should be text/plain. in h3 or nitro, this becomes text/plain.

Steps to reproduce 🕹

in routes/test.ts:

export function GET(e) {
  e.nativeEvent.respondWith(new Response("test"));
}

Context 🔦

No response

Your environment 🌎

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions