From 6abca96ac2fabea0e95e7ea2200ac9d79f5bc985 Mon Sep 17 00:00:00 2001 From: Bo Borgerson Date: Thu, 10 Nov 2016 15:30:08 -0800 Subject: [PATCH] Override default Content-Type in JSON response middleware The default Content-Type is non-empty. We should probably default externally... :thinking: --- packages/react-server-middleware-json-response/index.src.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-server-middleware-json-response/index.src.js b/packages/react-server-middleware-json-response/index.src.js index 0e2a8e52a..5a3094025 100644 --- a/packages/react-server-middleware-json-response/index.src.js +++ b/packages/react-server-middleware-json-response/index.src.js @@ -4,8 +4,8 @@ export default class JsonResponseMiddleware { return { isRawResponse: true }; } - getContentType(next) { - return next() || 'application/json'; + getContentType() { + return 'application/json'; } getResponseData(next) {