From 042df20da7b91cf1d97520f8b2f908797bb14b61 Mon Sep 17 00:00:00 2001 From: Pascal Mathis Date: Mon, 12 Sep 2016 00:11:57 +0200 Subject: [PATCH] Send correct Content-Type headers for all resources (#52) * Relocated JS and CSS URLs to /app.js and /app.css * Content-Type will now be properly set to text/html for all React-served HTML outputs Closes #46. --- src/components/App.js | 4 ++-- src/middleware/javascript.js | 2 +- src/middleware/react.js | 1 + src/server.js | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/App.js b/src/components/App.js index ca93410..2bb955e 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -41,10 +41,10 @@ export default class App extends React.Component { FilePizza - Your files, delivered. - + -