Skip to content

Commit 05ca769

Browse files
fix: add token prefix for sendPostJson
1 parent 3918bf1 commit 05ca769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/actiontech/sqle/util/HttpClientUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ private JsonObject sendPostJson(String path, String request) throws Exception {
298298
URL url = new URL(path);
299299
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
300300
conn.setRequestMethod("POST");
301-
conn.setRequestProperty("Authorization", token);
301+
conn.setRequestProperty("Authorization", BEARER_TOKEN_PREFIX + token);
302302
conn.setRequestProperty("Content-Type", "application/json");
303303
String result = "";
304304

0 commit comments

Comments
 (0)