-
Notifications
You must be signed in to change notification settings - Fork 72
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
Missing Content-Type header #78
Comments
I just have been running into exactly this issue and noticed that it only shows up when using |
I was having trouble getting some twitter cards to work, and noticed this message at the bottom:
But I actually posted in the twitter dev forum before seeing this, and got a response that it was because I'm missing a content-type header. So maybe the issue is not the chunkedResponse but the missing content-type header? 🤔 |
For everyone having scraping issues with ember-fastboot apps, such as LinkedIn, Twitter, etc, setting |
The initial response for the html page is missing
Content-Type: text/html; charset=utf-8
.I think the reason this is happening is
express-http-server.js
has the following code:app.get('/', fastbootMiddleware);
causes the initial request to not have the correct content-type since that is normally handled byexpress.static
.So it seems fastboot-express-middleware needs to call
.type('text/html')
somewhere.The text was updated successfully, but these errors were encountered: