fix #1869: send correct http response in spice proxy

the glib implementation of the http proxy correctly checks the
http response (response code, followed by an empty line)
so we need to answer with the correct status

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2018-08-16 14:48:12 +02:00 committed by Dietmar Maurer
parent ed8d2557ae
commit a4d8bbafbe

View File

@ -867,7 +867,8 @@ sub handle_spice_proxy_request {
# todo: use stop_read/start_read if write buffer grows to much # todo: use stop_read/start_read if write buffer grows to much
my $res = "$proto 200 OK\015\012"; # hope this is the right answer? # a response must be followed by an empty line
my $res = "$proto 200 OK\015\012\015\012";
$reqstate->{hdl}->push_write($res); $reqstate->{hdl}->push_write($res);
# log early # log early