diff options
-rw-r--r-- | lib/TUWF/Response.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/TUWF/Response.pm b/lib/TUWF/Response.pm index 34754e8..07799e8 100644 --- a/lib/TUWF/Response.pm +++ b/lib/TUWF/Response.pm @@ -192,8 +192,7 @@ sub resJSON { $self->resHeader('Content-Type' => 'application/json; charset=UTF-8'); $self->resBuffer('clear'); - my $fd = $self->resFd(); - print $fd JSON::XS::encode_json($obj); + $self->resBinary(JSON::XS::encode_json($obj)); } |