From 0b4cb190b45bad5c5f9a29769010ec63d13bca27 Mon Sep 17 00:00:00 2001 From: johnshaughnessy <johnfshaughnessy@gmail.com> Date: Mon, 6 Aug 2018 17:11:27 -0700 Subject: [PATCH] Remove unnecessary comment. --- src/utils/media-utils.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/utils/media-utils.js b/src/utils/media-utils.js index 7049d7c9a..7328fe72a 100644 --- a/src/utils/media-utils.js +++ b/src/utils/media-utils.js @@ -28,12 +28,6 @@ export const upload = file => { return fetch(mediaAPIEndpoint, { method: "POST", body: formData - - // We do NOT specify a Content-Type header like so - // headers: { "Content-Type" : "multipart/form-data" }, - // because we want the browser to automatically add - // "Content-Type" : "multipart/form-data; boundary=...--------------<boundary_size>", - // See https://stanko.github.io/uploading-files-using-fetch-multipart-form-data/ for details. }).then(r => r.json()); }; -- GitLab