mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-13 22:15:35 +00:00
fix: change the content type
This commit is contained in:
parent
0949ef0fa3
commit
6c7d47d374
@ -352,7 +352,7 @@ const Documents = () => {
|
|||||||
{
|
{
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'multipart/form-data'
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
doc_name: documentName,
|
doc_name: documentName,
|
||||||
|
@ -349,7 +349,7 @@ const Index = () => {
|
|||||||
{
|
{
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'multipart/form-data'
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
doc_name: documentName,
|
doc_name: documentName,
|
||||||
|
Loading…
Reference in New Issue
Block a user