]> git.proxmox.com Git - pve-http-server.git/commit
header processing: factor out auth and request handling
authorMax Carrara <m.carrara@proxmox.com>
Fri, 3 Mar 2023 17:29:49 +0000 (18:29 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 7 Mar 2023 10:18:41 +0000 (11:18 +0100)
commitf2e54bb78a64da2c82f822baf506e9df934618aa
treedf661f3f1bf614a6d83673dafd4e0cedefe1dea3
parentbda48641458e09ba0287d072e89cbce8636d8d90
header processing: factor out auth and request handling

The part responsible for authentication and subsequent request
handling is moved into the new `authenticate_and_handle_request`
subroutine.

If `authenticate_and_handle_request` 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