mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-25 03:09:00 -06:00
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:
@@ -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",
|
||||
|
||||
@@ -52,6 +52,9 @@ const readBatchOptions = {
|
||||
|
||||
const writeBatchOptions = {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/octet-stream',
|
||||
},
|
||||
};
|
||||
|
||||
const updateRootOptions = {
|
||||
|
||||
Reference in New Issue
Block a user