Add missing content type header to writeValue (#3169)

When we do a writeValue we do a POST with a request body of some binary
data. Some clients (RN) do not set the content-type header which then
leads to failure on our server.
This commit is contained in:
Erik Arvidsson
2017-02-10 11:29:47 -08:00
committed by GitHub
parent 7289c851f3
commit 651c140472
2 changed files with 4 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "@attic/noms",
"license": "Apache-2.0",
"version": "69.6.1",
"version": "69.7.0",
"description": "Noms JS SDK",
"repository": "https://github.com/attic-labs/noms/tree/master/js/noms",
"main": "dist/commonjs/noms.js",

View File

@@ -52,6 +52,9 @@ const readBatchOptions = {
const writeBatchOptions = {
method: 'POST',
headers: {
'Content-Type': 'application/octet-stream',
},
};
const updateRootOptions = {