Skip to content

Commit f0a2139

Browse files
loli0123456789kevinlin09
authored andcommitted
Standardize Authorization header format: use 'Bearer' instead of 'bearer'
1 parent 48f2833 commit f0a2139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/alibaba/dashscope/protocol/DashScopeHeaders.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static Map<String, String> buildWebSocketHeaders(
2424
String apiKey, boolean isSecurityCheck, String workspace, Map<String, String> customHeaders)
2525
throws NoApiKeyException {
2626
Map<String, String> headers = new HashMap<>();
27-
headers.put("Authorization", "bearer " + ApiKey.getApiKey(apiKey));
27+
headers.put("Authorization", "Bearer " + ApiKey.getApiKey(apiKey));
2828
headers.put("user-agent", userAgent());
2929
if (workspace != null && !workspace.isEmpty()) {
3030
headers.put("X-DashScope-WorkSpace", workspace);

0 commit comments

Comments
 (0)