Skip to content

Commit ea841ad

Browse files
Cherry-pick: Fix policy autofill using incorrect media-type for query (#30163)
#30066 #30112
1 parent 0a96d5e commit ea841ad

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed policy autofill using incorrect media-type for query

frontend/services/entities/autofill.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ export default {
1010
getPolicyInterpretationFromSQL: (sql: string): Promise<IAutofillPolicy> => {
1111
const { AUTOFILL_POLICY } = endpoints;
1212

13-
// API expects JSON object with key "sql"
14-
const data = JSON.stringify({ sql });
15-
16-
return sendRequest("POST", AUTOFILL_POLICY, data);
13+
return sendRequest("POST", AUTOFILL_POLICY, { sql });
1714
},
1815
};

0 commit comments

Comments
 (0)