From fb2943237e34e9a45c9a2cb15f992abfaa6d9e0f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 21 Nov 2011 08:15:43 +0000 Subject: [PATCH] Mogstored/SideChannelClient: remove padding on MD5 Sticking with the defaults Digest::MD5 provides us. For some installations, 2 bytes can add up to a lot in a database table. --- lib/Mogstored/SideChannelClient.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Mogstored/SideChannelClient.pm b/lib/Mogstored/SideChannelClient.pm index 39cddad..deb2de8 100644 --- a/lib/Mogstored/SideChannelClient.pm +++ b/lib/Mogstored/SideChannelClient.pm @@ -144,7 +144,7 @@ sub md5_fh { $md5->add($data); if ($offset >= $total) { my $content_md5 = $md5->b64digest; - $self->write("$uri md5=$content_md5==\r\n"); + $self->write("$uri md5=$content_md5\r\n"); $cb = undef; CORE::close($fh); $self->watch_read(1); -- 2.11.4.GIT