From: Fabian Grünbichler Date: Tue, 7 Mar 2023 09:41:41 +0000 (+0100) Subject: header processing: add comments X-Git-Url: https://git.proxmox.com/?p=pve-http-server.git;a=commitdiff_plain;h=4737252f60c7ff631c6f413567589d0e787dac7a header processing: add comments Signed-off-by: Fabian Grünbichler --- diff --git a/src/PVE/APIServer/AnyEvent.pm b/src/PVE/APIServer/AnyEvent.pm index 0425ea1..1f9952f 100644 --- a/src/PVE/APIServer/AnyEvent.pm +++ b/src/PVE/APIServer/AnyEvent.pm @@ -1333,6 +1333,7 @@ sub unshift_read_header { }); }; +# sends an (error) response and returns 0 in case of errors sub process_header { my ($self, $reqstate) = @_; @@ -1385,6 +1386,8 @@ sub process_header { return 1; } +# sends an (redirect) response, disconnects the client and returns 0 if +# connection is not TLS-protected sub ensure_tls_connection { my ($self, $reqstate) = @_;