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 27
27
import java .io .InputStreamReader ;
28
28
import java .io .OutputStream ;
29
29
import java .io .Reader ;
30
+ import java .io .UnsupportedEncodingException ;
30
31
import java .lang .reflect .Type ;
32
+ import java .net .URLEncoder ;
31
33
import java .util .HashMap ;
32
34
import java .util .List ;
33
35
import java .util .Map ;
@@ -80,6 +82,13 @@ private String makePath(
80
82
String container ,
81
83
boolean stdin ,
82
84
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
+ }
83
92
String path =
84
93
"/api/v1/namespaces/"
85
94
+ namespace
You can’t perform that action at this time.
0 commit comments