mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-06-30 17:25:06 +00:00
fix #1935: read empty line after 200 OK
commit a4d8bbafbe
introduced an additional empty line after '200 OK'
for remote-viewer 7 to work, but we also have to read this line
in our own proxy reader else the connection to a remote node does
not work
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
131889e977
commit
6c31d13ebc
@ -890,7 +890,10 @@ sub handle_spice_proxy_request {
|
||||
my ($hdl, $line) = @_;
|
||||
|
||||
if ($line =~ m!^$proto 200 OK$!) {
|
||||
&$startproxy();
|
||||
# read the empty line after the 200 OK
|
||||
$reqstate->{proxyhdl}->unshift_read(line => sub{
|
||||
&$startproxy();
|
||||
});
|
||||
} else {
|
||||
$reqstate->{hdl}->push_write($line);
|
||||
$self->client_do_disconnect($reqstate);
|
||||
|
Loading…
Reference in New Issue
Block a user