From d0619b3378328e4773a91b125f1d9cd1aba9f27a Mon Sep 17 00:00:00 2001 From: "shiweisong.ssw" Date: Wed, 28 Jun 2023 17:56:06 +0800 Subject: [PATCH] feat: remove header --- datacenter/app/datastores/documents/page.tsx | 3 --- datacenter/app/datastores/page.tsx | 3 --- 2 files changed, 6 deletions(-) diff --git a/datacenter/app/datastores/documents/page.tsx b/datacenter/app/datastores/documents/page.tsx index 511f848c8..f1612aaa1 100644 --- a/datacenter/app/datastores/documents/page.tsx +++ b/datacenter/app/datastores/documents/page.tsx @@ -355,9 +355,6 @@ const Documents = () => { `http://localhost:8000/knowledge/${spaceName}/document/upload`, { method: 'POST', - headers: { - 'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' - }, body: formData } ) diff --git a/datacenter/app/datastores/page.tsx b/datacenter/app/datastores/page.tsx index ceea11a0a..356968e45 100644 --- a/datacenter/app/datastores/page.tsx +++ b/datacenter/app/datastores/page.tsx @@ -352,9 +352,6 @@ const Index = () => { `http://localhost:8000/knowledge/${knowledgeSpaceName}/document/upload`, { method: 'POST', - headers: { - 'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' - }, body: formData } )