File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
util/src/main/java/io/kubernetes/client Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 2727import java .io .InputStreamReader ;
2828import java .io .OutputStream ;
2929import java .io .Reader ;
30+ import java .io .UnsupportedEncodingException ;
3031import java .lang .reflect .Type ;
32+ import java .net .URLEncoder ;
3133import java .util .HashMap ;
3234import java .util .List ;
3335import java .util .Map ;
@@ -80,6 +82,13 @@ private String makePath(
8082 String container ,
8183 boolean stdin ,
8284 boolean tty ) {
85+ for (int i = 0 ; i < command .length ; i ++) {
86+ try {
87+ command [i ] = URLEncoder .encode (command [i ], "UTF-8" );
88+ } catch (UnsupportedEncodingException ex ) {
89+ throw new RuntimeException ("some thing wrong happend: " + ex .getMessage ());
90+ }
91+ }
8392 String path =
8493 "/api/v1/namespaces/"
8594 + namespace
You can’t perform that action at this time.
0 commit comments