]> git.proxmox.com Git - pve-http-server.git/commit
proxy request: handle missing content-type header
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 9 Jun 2023 16:11:45 +0000 (18:11 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Jun 2023 16:57:28 +0000 (18:57 +0200)
commit81f0f40ea19bdda9c4983567f2b33d75c9aca588
tree402a8c204cbf30158ece9d5631d61888b2956ba4
parent0e761983b95e4f7a8b9a4924da7ac7ad4f2fba86
proxy request: handle missing content-type header

In case the actual request-body is empty it seems not Content-Type
header is set by browsers.

Tested on a vm with stopping and starting a container via GUI
(/api2/extjs/nodes/<nodename>/lxc/<vmid>/status/stop)

fixes f398a3d94bb5c798e1e1ea91113cd76648dd79eb

Reported-by: Friedrich Weber <f.weber@proxmox.com>
Reported-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PVE/APIServer/AnyEvent.pm