X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FBase.pm;h=5e0fd26cb5a9aff6e223dbc649ef008b5a602239;hb=00a6bdd7580be1c0cd0bc72eafc9af911ae63ff9;hp=f9db85aaf7bb468579feed974f11071a58974444;hpb=348d92dd4eef97a607e2ad87eda20e63804c4f89;p=kivitendo-erp.git diff --git a/SL/Controller/Base.pm b/SL/Controller/Base.pm index f9db85aaf..5e0fd26cb 100644 --- a/SL/Controller/Base.pm +++ b/SL/Controller/Base.pm @@ -75,6 +75,7 @@ sub render { header => 1, layout => 1, process => 1, + status => '200 ok', ); $options->{$_} //= $defaults{$_} for keys %defaults; $options->{type} = lc $options->{type}; @@ -131,7 +132,8 @@ sub render { : 'application/json'; print $::form->create_http_response(content_type => $content_type, - charset => 'UTF-8'); + charset => 'UTF-8', + (status => $options->{status}) x !!$options->{status}); } }