0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-12 00:35:03 +00:00

Fix HTTP DELETE issue

This commit is contained in:
Dan Petersen 2020-01-01 08:04:13 +01:00
parent 7f12acf659
commit 9de2bfbe98

View File

@ -91,7 +91,7 @@ func (c *VirtualEnvironmentClient) DoRequest(method, path string, requestBody in
encodedValues := v.Encode()
if encodedValues != "" {
if method == hmGET || method == hmHEAD {
if method == hmDELETE || method == hmGET || method == hmHEAD {
if !strings.Contains(modifiedPath, "?") {
modifiedPath = fmt.Sprintf("%s?%s", modifiedPath, encodedValues)
} else {