]> git.proxmox.com Git - pve-http-server.git/commit
header processing: extract into separate subroutine
authorMax Carrara <m.carrara@proxmox.com>
Fri, 3 Mar 2023 17:29:48 +0000 (18:29 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 7 Mar 2023 10:18:10 +0000 (11:18 +0100)
commitbda48641458e09ba0287d072e89cbce8636d8d90
tree2333108431c989730ac9a2d0c34fe1a4af2c7328
parent21bab96c48b04ed8ad9b99801e95385a3db5ebb3
header processing: extract into separate subroutine

The code concerned with processing the request's header in
`unshift_read_header` is moved into the new `process_header`
subroutine.

If `process_header` doesn't return early, it returns `1` for further
control flow purposes.

Some minor things are formatted or renamed for readability's sake.

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
src/PVE/APIServer/AnyEvent.pm