This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 686c19a Fix test_connection POST body (#10846)
686c19a is described below
commit 686c19abcf740355014438278b25f5b22699dcb7
Author: Moriah Kreeger <[email protected]>
AuthorDate: Fri Sep 11 23:33:43 2020 -0700
Fix test_connection POST body (#10846)
---
superset-frontend/src/views/CRUD/data/database/DatabaseModal.tsx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/superset-frontend/src/views/CRUD/data/database/DatabaseModal.tsx
b/superset-frontend/src/views/CRUD/data/database/DatabaseModal.tsx
index 3000ee8..faaa37b 100644
--- a/superset-frontend/src/views/CRUD/data/database/DatabaseModal.tsx
+++ b/superset-frontend/src/views/CRUD/data/database/DatabaseModal.tsx
@@ -157,7 +157,8 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps>
= ({
SupersetClient.post({
endpoint: 'api/v1/database/test_connection',
- postPayload: JSON.stringify(connection),
+ body: JSON.stringify(connection),
+ headers: { 'Content-Type': 'application/json' },
})
.then(() => {
addSuccessToast(t('Connection looks good!'));