mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 15:35:51 +03:00
[PR #232] [MERGED] Upload: Don't overwrite HTTP headers #326
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#326
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Telmate/proxmox-api-go/pull/232
Author: @sebastian-de
Created: 1/27/2023
Status: ✅ Merged
Merged: 2/1/2023
Merged by: @mleone87
Base:
master← Head:fix-headers📝 Commits (1)
09f5de9Upload: Don't overwrite HTTP headers📊 Changes
1 file changed (+4 additions, -3 deletions)
View changed files
📝
proxmox/client.go(+4 -3)📄 Description
Upload()currently modifiesClient.session.Headersdiretly. If the same Client struct is used for another request afterUpload()was called, the request will fail.packer-plugin-proxmoxfrequently reuses the Client struct to upload an ISO and then create a VM.CreateVm()fails after uploading a file because of wrong headers:Fix this by cloning
Client.session.Headersinstead of overwriting.Fixes https://github.com/hashicorp/packer-plugin-proxmox/issues/146
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.