Compare commits

..

1 Commits

Author SHA1 Message Date
peze 6af7becd53 fix to reader 2025-02-12 20:43:19 +08:00
+3
View File
@@ -414,6 +414,9 @@ func getNoProxy(protocol string, runtime *RuntimeObject) []string {
func ToReader(obj interface{}) io.Reader {
switch obj.(type) {
case string:
tmp := obj.(string)
return strings.NewReader(tmp)
case *string:
tmp := obj.(*string)
return strings.NewReader(StringValue(tmp))