Skip to content

Commit 0bb0b35

Browse files
[fix]去掉自定义请求头Authorization字段的Bearer前缀 (#70)
* [fix]去掉自定义请求头Authorization字段的Bearer前缀 * Update version.txt --------- Co-authored-by: Yao Chi <later@usopp.net>
1 parent 8adbcd9 commit 0bb0b35

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

bizyui/js/apply_image_to_node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ window.addEventListener('message', async function(event) {
109109
// 发送请求
110110
const headers = {};
111111
if (token) {
112-
headers["Authorization"] = `Bearer ${token}`;
112+
headers["Authorization"] = token;
113113
}
114114

115115
const response = await fetch('/upload/image', {

bizyui/js/model_apply.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const NodeInfoLogger = (function() {
6161
const imageUrl = buildImageUrl(filename, type);
6262
const headers = {};
6363
if (token) {
64-
headers["Authorization"] = `Bearer ${token}`;
64+
headers["Authorization"] = token;
6565
}
6666

6767
const response = await fetch(imageUrl, {

bizyui/js/siliconcloud_llm_api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const createModelFetchExtension = (nodeName, endpoint) => {
5252

5353
// 只有在token存在时才添加Authorization头
5454
if (token) {
55-
headers["Authorization"] = `Bearer ${token}`;
55+
headers["Authorization"] = token;
5656
}
5757

5858
const response = await fetch(endpoint, {

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.11
1+
1.2.12

0 commit comments

Comments
 (0)