Skip to content

Commit

Permalink
replicate generates proper CRLF for Content-MD5 header
Browse files Browse the repository at this point in the history
TODO: see if we can use LWP to avoid mistakes like this :x
  • Loading branch information
Eric Wong authored and dormando committed Mar 30, 2012
1 parent 3bc57a8 commit 6ea29a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MogileFS/Worker/Replicate.pm
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ sub http_copy {
# and reject corrupted requests. no HTTP server should reject
# a request for an unrecognized header
my $b64digest = encode_base64($fid_checksum->{checksum}, "");
$content_md5 = "Content-MD5: $b64digest\r\n";
$content_md5 = "\r\nContent-MD5: $b64digest";
}

$intercopy_cb ||= sub {};
Expand Down

0 comments on commit 6ea29a4

Please sign in to comment.