]> git.proxmox.com Git - pve-http-server.git/commitdiff
pass $format to rest_handler()
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 10 Aug 2017 06:47:32 +0000 (08:47 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 10 Aug 2017 06:47:32 +0000 (08:47 +0200)
Used by PMG::HTTPServer.

PVE/APIServer/AnyEvent.pm

index 5479f9bdd253dc99d819ccd5fe357c4756f5d843..703d25cb0d8d0f97c37635eef6fa93f25c5aea5e 100755 (executable)
@@ -695,7 +695,7 @@ sub handle_api2_request {
 
        my $clientip = $reqstate->{peer_host};
 
-       my $res = $self->rest_handler($clientip, $method, $rel_uri, $auth, $params);
+       my $res = $self->rest_handler($clientip, $method, $rel_uri, $auth, $params, $format);
 
        # HACK: see Note 1
        Net::SSLeay::ERR_clear_error();
@@ -1718,7 +1718,7 @@ sub auth_handler {
 }
 
 sub rest_handler {
-    my ($self, $clientip, $method, $rel_uri, $auth, $params) = @_;
+    my ($self, $clientip, $method, $rel_uri, $auth, $params, $format) = @_;
 
     # please do not raise exceptions here (always return a result).