Skip to content

Commit d95563c

Browse files
author
Alex Bagehot
committed
set BearerToken in buildRequest fixes #180
1 parent 77b93f1 commit d95563c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

util/src/main/java/io/kubernetes/client/util/WebSockets.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public static void stream(
9393
headers.put(STREAM_PROTOCOL_HEADER, allProtocols);
9494
headers.put(HttpHeaders.CONNECTION, HttpHeaders.UPGRADE);
9595
headers.put(HttpHeaders.UPGRADE, SPDY_3_1);
96+
String[] localVarAuthNames = new String[] {"BearerToken"};
9697

9798
Request request =
9899
client.buildRequest(
@@ -103,7 +104,7 @@ public static void stream(
103104
null,
104105
headers,
105106
new HashMap<String, Object>(),
106-
new String[0],
107+
localVarAuthNames,
107108
null);
108109
streamRequest(request, client, listener);
109110
}

0 commit comments

Comments
 (0)