From 9de2bfbe98eb493d0c9f2c2640537276d8a926a6 Mon Sep 17 00:00:00 2001 From: Dan Petersen Date: Wed, 1 Jan 2020 08:04:13 +0100 Subject: [PATCH] Fix HTTP DELETE issue --- proxmox/virtual_environment_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox/virtual_environment_client.go b/proxmox/virtual_environment_client.go index deaa41f5..9d0dfc8d 100644 --- a/proxmox/virtual_environment_client.go +++ b/proxmox/virtual_environment_client.go @@ -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 {