From c555a037520769fe44012c04b4fe668eb1849b0a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 9 Nov 2014 19:09:37 +0100 Subject: [PATCH] Do not send the prettyprint cache in the JSON; it only wastes space. --- Position.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Position.pm b/Position.pm index 1a02d61..6b772a6 100644 --- a/Position.pm +++ b/Position.pm @@ -112,7 +112,7 @@ sub fen { sub to_json_hash { my $pos = shift; - my $json = { %$pos, board => undef, fen => $pos->fen() }; + my $json = { %$pos, board => undef, prettyprint_cache => undef, fen => $pos->fen() }; if ($json->{'player_w'} =~ /^base64:(.*)$/) { $json->{'player_w'} = MIME::Base64::decode_base64($1); } -- 2.39.2