Skip to content

[BUG] Web preview changes the content-type header of the response #481

@alonstern

Description

@alonstern

To Reproduce

python -m http.server 9000 &
curl -v http://localhost:9000

Configure web preview to port 9000 and click "Open and browse"

Observed Behavior

image
The curl command returns the right content-type text/html.

image
The web preview page returns a content-type of application/json and therefore the page is not rendered correctly.

Expected behavior

I would expect the web preview the web preview to return the same content-type as the service returns such that the browser will render it correctly

Is this specific to Cloud Shell?

Yes, as I showed curl returns the right header.

Interface information

Edge on Mac OS

Additional context

None

This seems like a very basic usage of the web preview feature so I might be missing something. I would appreciate your help in making it work. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Triage-neededTriage needed by Cloud Shell teambugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions