Compare commits

...

1 Commits

Author SHA1 Message Date
peze abae7f41c3 fix to reader 2025-02-12 20:41:32 +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))