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:
parent
7f12acf659
commit
9de2bfbe98
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user