chunker: small cleanups to whitespace handling
commit246bc4139262d4575b3a7b45e7a08bc93ff1a975
authorEric Wong <normalperson@yhbt.net>
Sun, 11 Dec 2011 09:05:08 +0000 (11 09:05 +0000)
committerEric Wong <normalperson@yhbt.net>
Sun, 11 Dec 2011 09:05:08 +0000 (11 09:05 +0000)
tree365a7d22202a4cd66411e1ca38c4695cee669ccc
parent3f342091cec9fcd5f99ba934444f17cd0c77de71
chunker: small cleanups to whitespace handling

The client-provided Content-MD5 may have leading/trailing
whitespace, so we shall strip that before comparing.

We also know any base64-encoded MD5 we generate will have only
trailing whitespace so we can get away with the (slightly)
faster and more-GC-friendly String#rstrip!
lib/mogilefs/chunker.rb