-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Content-Type
header is missing in responses of starter project
#712
Labels
Comments
Maybe this is the line (L47) that misses the content-type?
Simple solution might be to simply add something like to line 47: res.setHeader('Content-Type', 'text/html'); But I'm not expert enough to foresee if this has unwanted side-effects. |
Haven't had any issues so far, but seems like a reasonable fix |
alaendle
added a commit
to alaendle/analog
that referenced
this issue
Oct 23, 2023
alaendle
added a commit
to alaendle/analog
that referenced
this issue
Oct 23, 2023
22 tasks
alaendle
added a commit
to alaendle/analog
that referenced
this issue
Oct 23, 2023
brandonroberts
pushed a commit
that referenced
this issue
Oct 24, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please provide the environment you discovered this bug in.
GitHub codespace on https://github.com/alaendle/meta-framework-playground/tree/eb34a638d2fe0430ad9ccb169b89182a65dd1d9c
Which area/package is the issue in?
Don't know / other
Description
Following https://analogjs.org/docs/getting-started#creating-a-new-application and directly starting via
npm install && npm run start
-curl http://localhost:5173/ -v
shows that the response doesn't include aContent-Type
header and browsers will display the response as plain text.Please provide the exception or error you saw
Other information
Please let me know if I was unclear or if you need further information to track down the issue.
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: