Skip to content

Commit 308af21

Browse files
authored
Revert "fix: empty resourceURI in put body (#552)" (#556)
This reverts commit 1e50f5a.
1 parent 1e50f5a commit 308af21

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

internal/message/wsman.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,7 @@ func (w WSManMessageCreator) CreateBody(method, wsmanClass string, data interfac
9595
log.Println(err)
9696
}
9797

98-
xmlStr := string(xmlString)
99-
100-
namespace := fmt.Sprintf("%s%s", w.ResourceURIBase, wsmanClass)
101-
xmlStr = strings.ReplaceAll(xmlStr, `xmlns:h=""`, fmt.Sprintf(`xmlns:h="%s"`, namespace))
102-
103-
str.WriteString(xmlStr)
98+
str.WriteString(string(xmlString))
10499
} else {
105100
str.WriteString(fmt.Sprintf(`<h:%s xmlns:h="%s%s">`, method, w.ResourceURIBase, wsmanClass))
106101
str.WriteString(fmt.Sprintf(`</h:%s>`, method))

0 commit comments

Comments
 (0)