mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-16 03:27:40 +00:00
remove spiceconfig output format
The client can generate a data url with that content easily.
This commit is contained in:
parent
565133731d
commit
a2c052b012
@ -111,14 +111,6 @@ sub format_response_data {
|
||||
# we use this for extjs file upload forms
|
||||
$ct = 'text/html;charset=UTF-8';
|
||||
$raw = encode_entities(to_json($data, {allow_nonref => 1}));
|
||||
} elsif ($format eq 'spiceconfig') {
|
||||
$ct = 'application/x-virt-viewer;charset=UTF-8';
|
||||
if ($data && ref($data) && ref($data->{data})) {
|
||||
$raw = "[virt-viewer]\n";
|
||||
while (my ($key, $value) = each %{$data->{data}}) {
|
||||
$raw .= "$key=$value\n" if defined($value);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$ct = 'text/plain;charset=UTF-8';
|
||||
$raw = to_json($data, {utf8 => 1, allow_nonref => 1, pretty => 1});
|
||||
|
Loading…
Reference in New Issue
Block a user