[pve-devel] applied: [PATCH http-server 4/4] websocket_proxy: fix indentation

Thomas Lamprecht t.lamprecht at proxmox.com
Sat Mar 7 20:27:34 CET 2020


On 3/6/20 11:20 AM, Fabian Grünbichler wrote:
> Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
> ---
>  PVE/APIServer/AnyEvent.pm | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/PVE/APIServer/AnyEvent.pm b/PVE/APIServer/AnyEvent.pm
> index bc2ec4d..8b049d4 100644
> --- a/PVE/APIServer/AnyEvent.pm
> +++ b/PVE/APIServer/AnyEvent.pm
> @@ -507,9 +507,9 @@ sub websocket_proxy {
>  		    } elsif ($opcode == 8) {
>  			my $statuscode = unpack ("n", $payload);
>  			print "websocket received close. status code: '$statuscode'\n" if $self->{debug};
> -		    if ($reqstate->{proxyhdl}) {
> -				$reqstate->{proxyhdl}->push_shutdown();
> -		    }
> +			if ($reqstate->{proxyhdl}) {
> +			    $reqstate->{proxyhdl}->push_shutdown();
> +			}
>  			$hdl->push_shutdown();
>  		    } elsif ($opcode == 9) {
>  			# ping received, schedule pong
> 

applied





More information about the pve-devel mailing list